1 2 3 4 5 6 7 8 9 10 11 12 13 14
| $date = time();
$genre = $_POST['genre'];
$decription = mysql_real_escape_string($description);
$description = nl2br($decription);
$doner = mysql_query("SELECT * FROM sous_categorie WHERE souscategorie='$categorie'");
$rep = mysql_fetch_array($doner);
$categorie2 = $rep['categorie'];
mysql_query("INSERT INTO annonces VALUES('','$region','$categorie','','','$nom','$prenom','$email','$telephone','$code_postal','$ville','$titre','$genre','$description','$prix','$youtube','$images','non','$date','$categorie2')");
$objet="OBJET DU MAIL";
$msg='Message du mail';
$envoi=mail($email, $objet, $msg,"From: \r\n"."Reply-To: \r\n");
$donnees_comfirm = mysql_query("SELECT * FROM annonces WHERE titre='$titre' AND nom='$nom' ORDER BY id DESC");
$comfirm = mysql_fetch_array($donnees_comfirm);
$id = $comfirm['id']; |
Partager