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'];
Did you know?Explore Trending and Topic pages for more stories like this.
$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

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Reduce redundancies in switch functions?
Hello all! I somewhat new to PHP, and was wondering if anyone could give some suggestions on a swit

Help to integrate whois Domain Details to website
Hi,

can i know is their any php script r methods to add domain details to my website.

script and html conflict in trying to create a header.
I have an error is occurring because of an html webpage with a "php require" at the top of

Header redirect
Hello ive got a problem ive got form with its action set to itself.
Code: <form id="f

Remote Database Access
Hey guys!!

OK, i'm used to only working with databases from the CPANEL, accessing phpMyAdmin

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

adding up might be solved tell us cheers.
i think i finally solved this anybody.

last time i was getting the wrong results.

Code

Log $_POST
How would i log submits on a form, by everyone? I want to then echo the number of submissions.

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