mysql fetch error
- by Luke
<?
$res = $database->userLatestStatus($u);
while($row=mysql_fetch_assoc($res)){
$status=$row['status'];
echo "$status";
}
?>
This is the code on my page, which is throwing up the following error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource....
The database function:…