Venturi, in the case of this code, I don't think the error is a "no result" rather too many results. fetch_array doesn't like working much when there are multiple rows in the result (need to fetch_row).
Just doing:
$nums = mysql_num_rows($result);
print $nums;
will show how many rows are selected in the database. That would go a long way to explain what is happening after.
Alex
|