You don't put variable names (i.e. $wealth) in speech marks. Try this:
PHP Code:
$money=$row['money'];
if ($money < "5000"){
$wealth="Empty Pockets";
}elseif ($money = "5001,50000"){
$wealth="Penny Picker";
}elseif ($money = "50001,250000"){
$wealth="Spare Change";
}elseif ($money = "250001,1000000"){
$wealth="Enough";
}elseif ("$money" = "1000001,5000000"){
$wealth="Wealthy";
}elseif ($money = "5000001,10000000"){
$wealth="Rich";
}elseif ($money = "10000001,25000000"){
$wealth="Richer Than Rich";
}elseif ("$money" = "25000001,50000000"){
$wealth="Burning Paper";
}elseif ($money = "50000001,100000000"){
$wealth="Famous Rich Icon";
}elseif ($money > "100000001"){
$wealth="Legendary Rich";
}
Alternatively you could use switch/case to replace all the elseif's, but it'd do the same thing.
Hope this helps,
-Will
Bookmarks