Jump to content

[SOLVED] mysql_unbuffered_query and mysql_num_rows


jordanwb

Recommended Posts

If I use mysql_unbuffered_query and I call mysql_num_rows before I've iterated through each row; will mysql_num_rows return the number of rows that have been found so far, or will it act as normal?

 

Apparently not:

 

Note: The benefits of mysql_unbuffered_query() come at a cost: You cannot use mysql_num_rows() and mysql_data_seek() on a result set returned from mysql_unbuffered_query(). You also have to fetch all result rows from an unbuffered SQL query, before you can send a new SQL query to MySQL.

 

:-\

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.