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!
$results=mysql_query("SELECT post_id FROM $table");
$row=mysql_fetch_array($results);
while ($row=mysql_fetch_array($results)) {
$entry=$row["post_id"];
echo $entry.'<br>';
}
All it's supposed to do is list all the 'post_id' values from the table. But for some reason, it always starts on the second entry and skips the first. The results are the same even if I change to a different column in the table.
Thanks in advance.
Last edited by charp on Sat Jul 23, 2005 10:13 pm, edited 1 time in total.
$results=mysql_query("SELECT post_id FROM $table");
$row=mysql_fetch_array($results);
while ($row=mysql_fetch_array($results)) {
$entry=$row["post_id"];
echo $entry.'<br>';
}
All it's supposed to do is list all the 'post_id' values from the table. But for some reason, it always starts on the second entry and skips the first. The results are the same even if I change to a different column in the table.