You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near ''
Et voici mon code php, qui contient surtout des erreur d'orthographe
mysql_connect("idoo-mysql00", "i185011", "adwnxd2fu3a63w8k") or die(mysql_error());
mysql_select_db("i185011") or die(mysql_error());
$id = mysql_real_escape_string(htmlspecialchars($_POST['id']));
$msg = mysql_real_escape_string(htmlspecialchars($_POST['pourquoi']));
$habbo = mysql_real_escape_string(htmlspecialchars($_POST['habbo']));$reponsej mysql_query("SELECT * FROM jeux WHERE id $id") or die(mysql_error());
$titre = $reponsej['titre'];
$msggo = "Nous somme désoler de te dire que ton jeux '$titre' à été refuser, tu ne poura donc pas faire son animation, pour la/les résons suventes : '$msg'";
mysql_query("INSERT INTO h_message VALUES('', '$habbo', '$msggo')") or die(mysql_error());
mysql_close();
echo "Fait !";
mysql_query("INSERT INTO h_message VALUES(\'\', \'$habbo\', \'$msggo\')") or die(mysql_error());
Ca ne marche pas ??
_________________________________________________________________________
VB.NETis good ...VB6is better<
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near '\'\',
\'dededede4\', \'Nous somme désoler de te dire que ton jeux '' à été
refus' at line 1
mon prob , de se connecter à une base mysql à partir d'un prog java avec jdbc quand j'excute voila le message qu'il me renvoie:echec pilote : com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax near 'SESSION VARIABLES' at line 1"
s il vout plait de l'aide