Hey Ok, Basicly i have made my profile page but i cant figure out how to do something, First of all i have ''Rank:'' , I have 12 Ranks but i want the Top Rank ''Official Bliss Godfather'' To be red If that makes sence.

Also where i have the Ranks [ADMIN] , [MOD] etc, I Want them to be where Rank is instead of username like ADMIN[Rank here]

If that makes sence to anyone?

Here is my code..

Rep+ To anyone who can do this for me.

PHP Code:
<?php

session_start
();

include 
"includes/db_connect.php";

include 
"includes/functions.php";

include
"includes/smile.php";

logincheck();

$username=$_SESSION['username'];

$viewuser=$_GET['viewuser'];



$fetch=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$viewuser'"));

$fetch1=mysql_fetch_object(mysql_query("SELECT * FROM user_info WHERE username='$viewuser'"));

if (!
$fetch){

echo 
"This user does not exist!";

exit();

}



$total_users=mysql_num_rows(mysql_query("SELECT * FROM crews"));



$query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");

$info mysql_fetch_object($query);



?>


<html>

<head>

<title>Profile</title>



<br>

<center><table width="97%" border="0">

<tr>

  <td bgcolor="000000">









<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="style.css" rel="stylesheet" type="text/css">

<style>
body {background-color:#000000;}
table, td {font-family:Verdana, Tahoma; font-size:10px; color:#CAC5B3;}
a {color:#ECE7D5;}
a:hover {color:#CAC5B3;}
.nav {padding: 4px;}
.navhead {display: block; background-color:#666666; border: 1px solid #444444; text-align:center; font-weight: bold;}
.style4 {font-size: 12px}
</style>

</head>

<body>

<div align="center">

<b><center></center></b><br><table width="93%" height="185" cellpadding="0" cellspacing="0">

  <tr>

    <td height="183" valign="top" class="tableborder"><div align="center">



      <div align="center">

        <table width="100%" border="0" align="center" cellpadding="3"  cellspacing="0"bordercolor="#FFFFFF" class="tableborder" valign="top">

          <tr bordercolor="#FFFFFF">

            









  

<td width="11%" height="20" ><div align="left" class="style3 style5">

              <div align="right"><font color="#999999"><b>Username:</b></font></div>

            </div></td><br>

            <td width="25%"><div align="left"><b><?php echo"<a href='send.php?fromper=$viewuser'><b><font color='#3399cc'>$viewuser</font></a>"; if ($fetch->userlevel == "1"){ echo "<b><font color='yellow'> [Mod]</font></b>"; }elseif ($fetch->userlevel == "4"){ echo "<b><font color='orange'> [Admin]</b>"; }elseif 
(
$fetch->userlevel == "5"){ echo "<b><font color='orange'> [Head MOD]</b>"; }elseif 
(
$fetch->userlevel == "2"){ echo "<b><font color='3cc33'> [HDOP]</b>";  }elseif ($fetch->userlevel == "3"){ echo "<b><font color='2A7FFF'> [Forum MOD]</b>";} 
 
?></b></div></td>









           









<td width="11%" height="20" ><div align="left" class="style3 style5">

        <div align="right"><font color="#999999"><b>Wealth:</b></font>

           </td></div>

            <td width="25%"><b>  <div align="left"> <?php

        
if ($fetch->money >= "0" && $fetch->money "10000"){ $wealth "Poor"; }

        elseif (
$fetch->money >= "10000" && $fetch->money "50000"){ $wealth "On The Dole"; }

        elseif (
$fetch->money >= "50000" && $fetch->money "100000"){ $wealth "Living Life"; }

        elseif (
$fetch->money >= "100000" && $fetch->money "500000"){ $wealth ""; }     

        elseif (
$fetch->money >= "500000" && $fetch->money "1000000"){ $wealth "Rather Rich"; }

        elseif (
$fetch->money >= "1000000" && $fetch->money "5000000"){ $wealth "Millionaire"; }

        elseif (
$fetch->money >= "5000000" && $fetch->money "10000000"){ $wealth "Multi Millionaire"; }

        elseif (
$fetch->money >= "10000000" && $fetch->money "20000000"){ $wealth "Gillionaire"; }

        elseif (
$fetch->money >= "20000000" && $fetch->money "50000000"){ $wealth "Lives in Money"; }

        elseif (
$fetch->money >= "50000000" && $fetch->money "70000000"){ $wealth "Walking Talking Bank"; }

        elseif (
$fetch->money >= "70000000" && $fetch->money "100000000"){ $wealth "Wipes *** with �50 Notes"; }

        elseif (
$fetch->money >= "100000000" && $fetch->money "500000000"){ $wealth "Owns Money Trees"; }

        elseif (
$fetch->money >= "500000000" && $fetch->money "750000000"){ $wealth "Haxor"; }

        elseif (
$fetch->money >= "750000000" && $fetch->money "1000000000"){ $wealth "Loots Their Own Bank!"; }

                elseif (
$fetch->money >= "1000000000"){ $wealth "<font color=red><b>Billionaire!"; }

echo 
"$wealth";

?>     </b></div></td>

          </tr>

          <tr bordercolor="#FFFFFF">

            <td width="11%" height="10" align="right"><div align="left" class="style6">

              <div align="right"><font color="#999999"><b>Rank:</b></font></div>

            </div></td>

            <td width="25%"><div align="left">



            <b><font color="#FFFFFF"><b><?=$fetch->rank?></b></div></td>


            <td width="11%"><div align="left" class="style6">

              <div align="right"><font color="#999999"><b>Status:</b></font></div>

            </div></td>

            <td width="25%"><div align="left"><b> <?php

$time_min
=time() - (1);

$time_five=time() - (60 5);

$time_day=time() - (3600 24);

$time_week=time() - (3600 24 7);

if (
$fetch->online $time_min && $fetch->ghostmode "0" ){

$state="(<font color=00FF00>Online</font>)";

}elseif (
$fetch->online $time_min && $fetch->ghostmode "2" ){

$state="(<font color=00FF00>Online</font>)";

}elseif (
$fetch->online $time_min && $fetch->ghostmode "1" ){

$state="(<font color=RED>Offline</font>)</font>";

}elseif (
$fetch->online $time_five){

$state="<font color=PURPLE>(Busy)</font>";

}elseif (
$fetch->online $time_day){

$state="(<font color=RED>Offline</font>)";

}elseif (
$fetch->online $time_week){

$state="(<font color=RED>Offline</font>)";

}



           echo 
"$fetch->status $state"?>        </b></div></td>

          </tr>

          <tr bordercolor="#FFFFFF">

            <td width="11%" height="20"><div align="left" class="style6">

              <div align="right"><font color="#999999"><b>Gender:</b></font></div>

            </div></td>
<b>  <?php echo "".replace($fetch->Gender).""?>
            </div></td>
            <td>            <b><?=$fetch->gender?></b></div></td>

            <td width="25%"><div align="left" class="style6">

             <div align="right"><font color="#999999"><b>Crew:</b></font></div></div></td>

            <td width="28%"><div align="left"><b>

<font color=white><?php

if($fetch->crew == "0") { echo "<b><font color=white>None</font><font color='#ffffff'></b>"; }

if(
$fetch->crew == "ML Crew")  { echo "<a href='crewprofile.php?viewcrew=$fetch->crew'><b><font color=#3399cc>$fetch->crew</b></a>"; }

elseif(
$fetch->crew != "0") { echo "<a href='crewprofile.php?viewcrew=$fetch->crew'><b><font color=#3399cc>$fetch->crew</a></font>"; }

  

?>

 <tr bordercolor="#FFFFFF">
            <td height="20" bgcolor="#000000"><div align="left" class="style6">
              <b><div align="right"><font color="#999999"><b>Jail:</b></div>
            </div></td>
<td width="29%" bordercolor="#000000" bgcolor="#000000"><font color='#FFFFFF'><b><?php
            
if ($fetch1->busts >= "0" && $fetch1->busts "10"){ $jailrank "Newbie"; }
        elseif (
$fetch1->busts >= "10" && $fetch1->busts "50"){ $jailrank "Trainee "; }
        elseif (
$fetch1->busts >= "50" && $fetch1->busts "200"){ $jailrank "Very sly!"; }
        elseif (
$fetch1->busts >= "200" && $fetch1->busts "400"){ $jailrank "Almost a ghost!"; }     
        elseif (
$fetch1->busts >= "400" && $fetch1->busts "1000"){ $jailrank "Invisible"; }
        elseif (
$fetch1->busts >= "1000" && $fetch1->busts "3000"){ $jailrank "Un-Seeable!"; }
        elseif (
$fetch1->busts >= "3000" && $fetch1->busts "5000"){ $jailrank "Ghost"; }
        elseif (
$fetch1->busts >= "5000" && $fetch1->busts "8000"){ $jailrank "Sly Eye!"; }
        elseif (
$fetch1->busts >= "8000" && $fetch1->busts "10000"){ $jailrank "Holds The Keys"; }
        elseif (
$fetch1->busts >= "10000" && $fetch1->busts "15000"){ $jailrank "Big At The Key "; }
elseif (
$fetch1->busts >= "15000"){ $jailrank "<font color=red><b>Jail Mastermind!"; }
echo 
"$jailrank"?></td>
<td bgcolor="#000000"><div align="left" class="style6">
              <b><font color="#999999"><div align="right">Killing:</div>
            </div></td>
<td width="29%" bordercolor="#000000" bgcolor="#000000"><font color='#FFFFFF'><b><?php
            
if ($fetch1->kill_skill >= "0" && $fetch1->kill_skill "3"){ $killrank "Soft as!"; }
        elseif (
$fetch1->kill_skill >= "3" && $fetch1->kill_skill "6"){ $killrank "Always ready!"; }
        elseif (
$fetch1->kill_skill >= "6" && $fetch1->kill_skill "12"){ $killrank "I Have a gun.."; }
        elseif (
$fetch1->kill_skill >= "12" && $fetch1->kill_skill "21"){ $killrank "Licenced To Destory"; }     
        elseif (
$fetch1->kill_skill >= "21" && $fetch1->kill_skill "30"){ $killrank "Silent Assassin"; }
        elseif (
$fetch1->kill_skill >= "30" && $fetch1->kill_skill "40"){ $killrank "Marksman"; }
        elseif (
$fetch1->kill_skill >= "40" && $fetch1->kill_skill "99999"){ $killrank "<font color=red><b>World Class Killer!"; }
    
echo 
"$killrank"?></td>
    </tr>





<center>











   </b></div></td>

          </tr>

          </table>

      </div>

    </div>

      



<br><br>



<?php echo "<center><font color=white>".replace($fetch->quote)."<center>"?>

      <div align="center"><center></div>

      <div align="center"></div>

    <div align="center">

      <table width="95%"  border="0" cellspacing="0" cellpadding="0">

  <td><div align="center"></div></td>

  </tr>

      </table>

      <embed src='<?php echo "".addslashes($fetch->music).""?>'></embed>

    </div></td>

  </tr>

</table>

<p></p>





 </td>

</tr>   



</table><br><bR>

�����