I performed a query and captured the results in a variable called $raw_results;
I then have the following:
$record_set = mysql_fetch_array($raw_results);
echo "<pre>";
print_r($record_set);
echo "</pre>";
echo "<hr />";
And right below it, I have:
while ($record_set = mysql_fetch_array($raw_results))
{
echo "<pre>";
print_r($record_set);
echo "</pre>";
}
I'm surprised (and confused) that the while loop starts at record #2 in the array instead of record #1.
If I remove the block above the loop, then the loop displays record #1 as I originally expected.
Why is the loop being affected by the block above it?
Thanks in advance for taking the time. Cheers.