deepatpaul
Programmer
I have a basic query that returns x rows. However, when I loop through the result, the first record is always ignored from the resultset. Eh?
This is what I am doing to call the database and loop through the results.
$report = mysql_query("Select this FROM that", $link);
$cnt = mysql_num_rows($report); // will say 5
while ($row = mysql_fetch_object($report)) { // will only output 4 (rows 1-4, ignoring 0)
$row->blahblah . "<br>";
}
This is what I am doing to call the database and loop through the results.
$report = mysql_query("Select this FROM that", $link);
$cnt = mysql_num_rows($report); // will say 5
while ($row = mysql_fetch_object($report)) { // will only output 4 (rows 1-4, ignoring 0)
$row->blahblah . "<br>";
}