diegueins Posted January 15, 2010 Share Posted January 15, 2010 I want to get the position of the internal pointer of a mysql query resultset. How can I do that? Link to comment https://forums.phpfreaks.com/topic/188582-how-do-i-get-the-value-of-the-internal-pointer-of-a-mysql-result/ Share on other sites More sharing options...
Catfish Posted January 15, 2010 Share Posted January 15, 2010 as far as i know, you can't. you can set where to put the internal pointer with mysql_data_seek() and you can find out the number of rows in the result with mysql_num_rows() but i can't find anything on returning where the internal pointer is. my guess is, you could use mysql_num_rows() to find out the pointer's range then use mysql_data_seek() to set it where you want then you would know where the pointer is and your own code would maintain that knowledge. Link to comment https://forums.phpfreaks.com/topic/188582-how-do-i-get-the-value-of-the-internal-pointer-of-a-mysql-result/#findComment-995714 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.