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

Select Lists into MYSQL
Hello All, I am new to PHP @ 1 week. So borrowing code anywhere I can. I am making progress, but h

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

Deleting a record php
Attempting to setup delete a record page. The below code I put together doesn't seem to work.

I need help with formatting date from mysql! with php!
Hello guys

*Note: this is a php question not MySQL question, please do not move it to mysql s

Open link with largest int string first
I have the following links i would like to open either all at once or one-by-one. How would i procee

how do i make new line after *
First check this page here. and you see my report. Im pulling form a mysql db. I want to beable to m

problem when runing a funciton
I am trying to connect to database using a funciton in a functions.php

<?php
funct

iterating through an array and escape each value independently.
I have a set up where the variable being escaped is an array and it needs to be iterated and escaped

RadioButtonList item spacing
I have a RadioButtonList and I can't put any spacing between the items. They are arranged verticall

mysql_affected_rows() usage
Possibly a MySQL issue, but the function that is not behaving in the anticipated way is a PHP functi

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