Quick Question about echo value


Posted on 16th Feb 2014 07:03 pm by admin

Hey guys, I'm trying to get something to show differently in one of my scripts. I'm trying to make it so that people that are a certain rank in my game will have their names show up bold in the users online. so I figured it would go like this:

Code: mysql_query("SELECT * FROM users WHERE username='$username'");
$rank=$rows['rank'];
$rankpoints=$rows['rankpoints'];

if($rankpoints>=50000){
echo '<b>$rank</b>' ; }

Is that right? Because normally when they hit this certain rank, it updates their rank in the database to RANK. However, when viewing users online, it doesn't show it. Anyone know why? Either way, I would like for them to get their names in bold.

No comments posted yet

Your Answer:

Login to answer
258 Like 24 Dislike
Previous forums Next forums
Other forums

How to update this array?
I am saving a string that looks this: username1, username2, username3...
into a single cell in a

How to show more than 1 users with this code...
Hello,
i have a table that shows users only if I, as Administrator, want to be shown. But its sho

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

EXplanation help
Hey all,

I am still fairly new to PHP programming and I am trying to put together a page wher

PHP friend keyword equivalent
is there a PHP equivalent for the C++ friend keyword?

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

Form File Upload
I've read through tons of resources and tutorials and as far as I can tell, my code is accurate, but

Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message s

Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in

quick basic question, hopefully not dumb
I don't know how to search for this, so forgive me if it's been covered...

I often see an exa

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash