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

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

extract data
Code: <div class="post hentry uncustomized-post-template">

Supress some serveroutput but not all
Hi,

I have a script I'm working on that uses plsql to create and RMAN script, this uses d

how to make database item unique
Hey guys,

is it possible to do this:

I have the database item $title being pulled for

newbie question
Hi out thereIm totaly new in this forum and to .net and vb so here is a totaly newbie question.I wan

PHP Form to Variable.
Hi! I have written a HTML-form code in DreamWeaver CS3 (in a PHP doc) and I really need it to work s

Parse Error with doctype
I'm getting a parse error with this simple code. I don't get it. It worked one time then when I relo

Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...

Code: $define_li

ME54/ME54N Conditional check for Release of PR
Hi Gurus,

My requirement is to put a check on the release of the PR with respect to the c

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