I am having trouble with a guest book. I can get the first entry to come up but it seems like the loop isnt working to create another row.
Here is my code:
<?php
$get_entries_res = mysql_query($query_Recordset1);
if(mysql_num_rows($get_entries_res) < 1) {
echo "No entries.";
} else {
//begin the while loop
while($entries_info = mysql_fetch_array($get_entries_res)) {
$id = $entries_info['id'];
$name = $entries_info['guest_name'];
$comments = $entries_info['guest_message'];
$display_block = "
<table>
<tr>
<td>$name said:</td>
</tr>
<tr>
<td>$comments</td>
</tr>
</table>
";
}
}
?>
Can anyone see whats wrong?