]*?>.*?@siu', '@]*?>.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', // Add line breaks before and after blocks '@

" . $guestbook_name . "

"; echo "

Ici, tu peux nous laisser un petit message. Notre papa ou notre maman le relayeront, sois-en sûr !

"; if (isset($message)) { if ($email == "") { $email = "no_email"; } else $email = strip_html_tags($email); $message=strip_html_tags($message); $name = strip_html_tags($name); $a = strtoupper($_POST['ecris']); $b = 'LUCIE'; if ($a == 'LUCIE' || $a == 'CAMILLE' || $a == 'LAURANE') { mysql_connect ($server, $user, $password) or die ("Can't connect!"); mysql_select_db ($database) or die ("Can't open database!"); $sql = "INSERT INTO $table (name, email, message, date) VALUES ('$name', '$email', '$message', NOW())"; echo($sql ."
"); $result = mysql_db_query($database, $sql); if ($result) echo ""; else echo "Error! Check the form!"; mysql_close(); } else echo "

Merci $name mais il manque mon prénom dans la dernière case :-((, mail $email, message $message

"; } if (!isset($show)) { $show = 0; } mysql_connect($server, $user, $password) or die ("Can't connect!"); mysql_select_db($database) or die ("Can't open database!"); $sql = "SELECT * FROM $table ORDER BY id DESC"; $result = mysql_db_query($database, $sql); if ($result) { $count = mysql_num_rows($result); $sqlshow = "SELECT * FROM $table ORDER BY id DESC LIMIT $show, $maxshow"; $result = mysql_db_query($database, $sqlshow); ?> cellspacing= cellpadding= border= bordercolor=> "; } ?>
Envoyé par " . htmlspecialchars($myrow["name"]) . ", le " . $myrow["date"] . "

" . nl2br($myrow["message"]) . "
"; $pages = $count / $maxshow; if ($pages < 1) $pages = 1; if ($pages / (int) $pages <> 1) $pages = (int) $pages + 1; else $pages = $pages; $pagenow = ($show/$maxshow + 1); echo "

Page " . $pagenow . " sur " . $pages . "

"; $next = $show + $maxshow; $previous = $show - $maxshow; if ($pages <> 1) { if ($previous < 0) { echo ""; echo "

>>>

||"; } elseif ($next >= $count) { echo ""; echo "

<<<

||"; } else { echo ""; echo "

<<<

"; echo " | "; echo ""; echo "

>>>

||"; } } echo "

Pages: "; $i = 0; while ($i < $pages) { $ri = $i + 1; $showpage = $i * $maxshow; echo "" . $ri . " "; $i++; } echo "

"; ?>

(*) Champs obligatoires

method='post'> * Ton nom ou ton pseudo:

Email: (ne sera pas publié)

* Ton message:

Ecris ici MON prénom (*)

Envoyer


Retourner à ma homepage





(*) Il y a des gens tellement bêtes qui viennent remplir mon guestbook automatiquement avec des bêtises. Il suffit donc d'écrire -> Camille <- dans cette case et le message sera enregistré.