0) {
// yes
// print them one after another
echo "
";
while($row = mysql_fetch_object($result)) {
echo "";
echo "| ".$row->id." | ";
echo "".$row->country." | ";
echo "".$row->animal." | ";
echo "
";
}
echo "
";
}
else {
// no
// print status message
echo "No rows found!";
}
// free result set memory
mysql_free_result($result);
// close connection
mysql_close($connection);
?>