Reply to Re: is there as mysql_ version of mysqli_more_results?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация