<? include ("config.php"); if ($_POST["voiture"]) { $var=$_POST["voiture"]; mysql_query("INSERT INTO vehicules VALUES(NULL, '$var', '1')"); $x=mysql_query("SELECT * FROM vehicules ORDER BY id DESC LIMIT 1"); while ($y=mysql_fetch_assoc($x)){ $id=$y['id']; ?>
<form onSubmit='return valid_form(this)' method="POST" action="index.php" > <!-- Bouton Creer Ma Page -->
$var=mysql_real_escape_string(htmlentities($_POST["voiture"]));
<? include ("config.php"); if ($_POST["voiture"]) { $var=$_POST["voiture"]; $new = htmlspecialchars($_POST["voiture"]); mysql_query("INSERT INTO vehicules VALUES(NULL, '$new', '1')"); $x=mysql_query("SELECT * FROM vehicules ORDER BY id DESC LIMIT 1"); while ($y=mysql_fetch_assoc($x)){ $id=$y['id']; ?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question