12-27-2008, 06:18 AM
|
#4 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Your query is failing, therefore retuning false and not a resource identifier hence why mysql_fetch_array is moaning.
PHP Code:
$res = mysql_query("SELECT id,pimp,hoes,condom,medicine,crack,thugs,weed,guests,beer,turn,cash,bank,worth,nrank,occupancy,informant,reserve,rating,streetbike,lowrider,hummer,bus, turnbank,valet,valitem,parking,custrides FROM $tab[pimp] WHERE id='$id' AND rid='$rid'") or die(mysql_error()); $info = mysql_fetch_array($res);
give that a try.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|