tags:

views:

134

answers:

1

methods like mysql_fetch_array move the internal resource pointer on a MySql result set, but how do you get the current value of the internal resource pointer though? Is there a "mysql_" method that returns this value?

A: 

mysql_connect() returns the resource you might be looking for.

mysql_connect — Open a connection to a MySQL Server

Return Values

Returns a MySQL link identifier on success, or FALSE on failure.

Unless I'm misunderstanding..

Mike B
yeah, I'm talking about iterating through the result set returned from mysql_query.ex:$rs = mysql_query($query);
mysql_fetch_array() or mysql_fetch_assoc() or mysql_fetch_row().. there's quite a few more options but most of the time any of those will meet your needs.
Mike B