";
$query = "SELECT * FROM comments WHERE comments != '' ORDER BY date_posted DESC";
$res = mysql_query($query);
$num = mysql_numrows($res);
$records[0] = array("brother_id, brother_first_name, brother_last_name, comments, date_posted");
for ($i=0;$i<$num;$i++) {
$rec = array( mysql_result($res,$i,"brother_id"),
mysql_result($res,$i,"brother_first_name"),
mysql_result($res,$i,"brother_last_name"),
mysql_result($res,$i,"comments"),
mysql_result($res,$i,"date_posted")
);
$records[$i+1] = $rec;
}
for ($row=1;$row<30;$row++) {
$tbldat = $records[$row];
echo"
";
}
echo"
|