Use this page to say what you think of this web site The form is at the bottom of the page.

you must give your name

\n"; } // If there is no message, we check if a name has been provided } else { if ($name != "") { echo "

You must write a message

\n"; } if (($mail != "") && ($name == "")) { echo "

You must give your name

\n"; } } // Now, we retrieve the messages to display $query = "SELECT * FROM guest_book ORDER BY Date DESC"; $result = mysql_query($query); // Number of messages $nbr = mysql_num_rows($result); // If we ask for a page that does not exists yet, we return the last page if ($page*10+10 > $nbr) { $page = ($nbr-$nbr%10)/10; } // We look for messages to display according to the page for($i = $page*10; ($i < $nbr) && ($i < $page*10+10); $i++) { if (! mysql_data_seek($result, $i)) { continue; } if (! $row = mysql_fetch_row($result)) { continue; } // We display messages list($years, $month, $day) = split("-", substr($row[0], 0, 10)); $name = $row[1]; $mail = $row[2]; $message = $row[3]; echo "\n"; echo " \n"; echo " \n"; echo "
$name "; if ($mail != "") { echo "($mail) "; } echo "- $day/$month/$year
$message

\n"; } mysql_free_result($result); // We close the connection mysql_close(); // Is there a previous page? echo "

"; if ($page == 1) { echo "Previous page"; } if ($page > 1) { echo "Previous page"; } // Is there a next page? if ($page*10+10 < $nbr) { if ($page > 0) { echo " - "; } echo "Next page"; } echo "

\n"; ?>
Give a message
name:
\n"; ?>
email:
\n"; ?>
message: