".$lastID." ORDER BY id ASC LIMIT 60"; $conn = getDBConnection(); $results = mysql_query($sql, $conn); if (!$results || empty($results)) { //echo 'There was an error creating the entry'; end; } while ($row = mysql_fetch_array($results)) { //the result is converted from the db setup (see initDB.php) $name = $row[2]; $text = $row[3]; $id = $row[0]; if ($name == '') { $name = 'no name'; } if ($text == '') { $name = 'no message'; } echo $id." ---".$name." ---".$text." ---"; // --- is being used to separete the fields in the output } } ?>