mysql_eof()
my_bool mysql_eof(MYSQL *result)
Use this function to determine whether the last row of the
results set has been fetched. It returns 0 until end of file is
reached and a nonzero value at end of file. This function has been
deprecated. Use mysql_errno() and
mysql_error(), or mysql_more_results(), instead to
check for an error indicating that the last row has been
reached.