|
Posted by Oli Filth on 06/26/05 23:25
MrKrinkle said the following on 26/06/2005 21:11:
> And by the way, there's still a need to find out if there's more
> results left even if you're only doing one query. mysql_fetch_assoc()
> will give you the next record in the results list. So there would be a
> use in knowing "are there any more records in the results list?"
>
Yes, but that's a fundamentally different thing to finding how many
result *sets* are left, which is what mysqli_more_results() does.
mysql_fetch_assoc() et al. all return FALSE when there are no more rows,
so that's one way of doing this. Alternatively, use mysql_num_rows()
straight after the query, and decrement it every time you fetch a row,
checking for when it reaches zero.
--
Oli
[Back to original message]
|