Php – How to get internal resource pointer from a MySql result set in Php

mysqlphp

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?

Best Solution

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..