I have four rows in my table. Only three are shown.
$query = "SELECT * FROM table";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
while($row = mysql_fetch_array($result)) {
echo $row['id'];
}
The result is 234
, but should be 1234
.
What am I doing wrong?