I'm kinda a noob so I don't know if this is actually possible.
I have two field in my MySQL database that I want to correlate:
Level int(11)
Rank enum('Hobo','Shippai','NoLifer',Troublemaker','gangster') (and so it continues.)
I want so that level 1=Hobo
, level 2=Shippai
etc. etc.
Currently it looks like this:
Level: {$ir['level']}
And want it to look like this on the website:
Rank: Hobo
Thanks in advance for any help...
Edit:
Here's the code for the table:
";
$exp=(int)($ir['exp']/$ir['exp_needed']*100);
print "
Name: {$ir['username']}Crystals: {$cm}
Level: {$ir['level']}
Exp: {$exp}%
Money: $fm
Gang: ";
$qs=$db->query("SELECT * FROM gangs WHERE gangID={$ir['gang']}");
$rs=$db->fetch_row($qs);
if(!$db->num_rows($qs) )
{
print "No Gang";
}
else
{
print" {$rs['gangNAME']} ";
} print " Property: {$ir['hNAME']}
Days Old: {$ir['daysold']} Health: {$ir['hp']}/{$ir['maxhp']} Energy: {$ir['energy']}/{$ir['maxenergy']} Brave: {$ir['brave']}/{$ir['maxbrave']} Will: {$ir['will']}/{$ir['maxwill']}
";