[PHP Debug] PHP Notice: in file /includes/functions_g.php on line 24: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
^ i get this :S but im in desperate need to make this work, the code is as follows
function getResourceInfo($id,$us=false){
global $db;
$a="SELECT * FROM ".GAME_USER_TABLE." WHERE `userid` = '".$id."'";
$b=$db->sql_query($a);
$s=mysql_fetch_array($b);
return $s;
}
its just really messed up and im pritty sure the query works fine. its just the arrays which i realy do need to work. ohh n the page that im using to use the array like this is set in a variable, but i no tht works fine,
$ui=getResourceInfo($user->data['user_id'],$user);
Please help me with this. thanks
Bookmarks