PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I want to display a header on a loop only if the conditional is true and only on the first pass through. Below is the code that I used. Do I have something in the wrong place? This seems to set off an infinite loop.
$first_row = mysql_fetch_assoc($rs);
if ($first_rows)
{
// do stuff with first row
}
while ($row = mysql_fetch_assoc($rs))
{
// do stuff with other rows
}