par
lamk » 21 avr. 2005, 12:00
en fait j'ai trouvé une autre soluce... j'ai pas réussi avec addslashes() :(
merci bcp pour ton aide ;)
j'utilise ça en fait :
$rue = htmlspecialchars($_POST['rue'], ENT_QUOTES);
$sql = "INSERT INTO fabricant VALUES
('','".$_POST['nom']."', '".$rue."', '".$_POST['cp']."', '".$_POST['ville']."',
'".$_POST['tel']."', '".$_POST['fax']."', '".$_POST['site']."', '".$_POST['mail']."','')";
mysql_query("$sql") or die("<font color='red'>Invalid query : ".mysql_error()."</font>");
ça marche nikel!
et merci encore ^^
en fait j'ai trouvé une autre soluce... j'ai pas réussi avec addslashes() :(
merci bcp pour ton aide ;)
j'utilise ça en fait :
[php]$rue = htmlspecialchars($_POST['rue'], ENT_QUOTES);
$sql = "INSERT INTO fabricant VALUES
('','".$_POST['nom']."', '".$rue."', '".$_POST['cp']."', '".$_POST['ville']."',
'".$_POST['tel']."', '".$_POST['fax']."', '".$_POST['site']."', '".$_POST['mail']."','')";
mysql_query("$sql") or die("<font color='red'>Invalid query : ".mysql_error()."</font>");[/php]
ça marche nikel!
et merci encore ^^