Hi i am very new to php and i’ve been working hard on the following code but i can’t seem to get the form to show up, i’ve tried to modify the code and look very closely to see if i’m missing anything but nothing found, i know the table code is all red in Dreamweaver but can’t find the key, need help!!! :’(
[php]
Commentaires <?php include ("Menu.php") ?>Commentaires
Ajouter un commentaire
"; if ($_POST['postbtn']) { $name = strip_tags($_POST['nom']); $courriel = strip_tags($_POST['courriel']); $message = strip_tags($_POST['message']); if ($nom && $courriel && $message) { $date = date("F d, Y"); //add to the database mysql_query("INSERT INTO guestbook1 VALUES ('', '$nom', '$courriel', '$message', '$date')"); echo "Votre commentaire à été ajouté";} else { echo "Il semble manquer de l'information"; } echo "Nom: | |
Courriel: | |
Message: | |
"; while ($row = mysql_fetch_assoc($query) ) { $id = $row['id']; $nom = $row['nom']; $courriel = $row['courriel']; $message = $row['message']; $date = $row['date']; $message = n12br ($message); echo "
$message
"; }} else echo "Aucun message n'a été trouvé"; //******************************************* mysql_close(); ?> [/php]