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?
Moderator: General Moderators
Code: Select all
while ($row = mysql_fetch_array($result))
{
if (mysql_get_row_pointer() == 0)
{
}
}
Code: Select all
$x = 0;
while ($row = mysql_fetch_array($result))
{
if ($x == 0) { /* do something */ }
$x++'
}