- Joined
- Apr 30, 2009
- Messages
- 42
- Reaction score
- 0
I'm having problems with displaying mysql querys.
It's working fine, it's displaying, but not the first row. I've tried everything but its displaying from the second row down.
The code im using to display the rows is:
It's working fine, it's displaying, but not the first row. I've tried everything but its displaying from the second row down.
The code im using to display the rows is:
PHP:
<?php
$query = ("SELECT * FROM message ORDER BY id LIMIT 0, 7");
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<div id='message'>";
echo $row['message'];
echo "</div>";
}
?>

