MySQL internal row pointer.
Posted: Thu Jul 17, 2008 5:58 pm
I have a situation where I need to get the index of the internal row pointer in a loop.
I'm looking for a function like mysql_get_row_pointer(fake function) that should return the index number of the internal row pointer. This way I could do something on the first iteration of the loop.
I tried looking for a mysql function like the above but no luck.
I'm sure someone has come across this type of problem?
Code: Select all
while ($row = mysql_fetch_array($result))
{
if (mysql_get_row_pointer() == 0)
{
}
}
I tried looking for a mysql function like the above but no luck.
I'm sure someone has come across this type of problem?