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

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

Not sure why this script is not working?
Hi I am new to php programing and I was trying to make up a simple script like a captcha but I canno

Bit manipulation program with binary operations
My homework is to create a program to scan in and add binary numbers and print them like so

help with calculations on a flat text file
hello,
I have this code below that is attached to a flat file like this:
Email:LastName:FirstN

Grabbing Values From an Array for Posting
I have a grid array that I am using with a form that when it hits the currently named test.php it lo

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

Port scanner problem
Hai
recently i developed one app through which u can check the opened and closed ports under an

Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not s

ECC6 - Single sign-on
We are in the process of upgrading to ECC 6 which will support single sign on with user passwords al

function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the

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