Erreur sql syntax
nomad22
-
nomad22 -
nomad22 -
Bonjour,
J'ai pratiquement terminé mon site internet mais j'ai quelques soucis quand je l'envoie en distant. Ca marche nickel en local avec easyphp mais j'ai deux pages qui m'affichent des erreurs de ce type en distant:
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 '$detail42' at line 1
Si vous avez déjà vu ça ou si vous connaissez la solution, ça m'aiderait beaucoup! merci!
J'ai pratiquement terminé mon site internet mais j'ai quelques soucis quand je l'envoie en distant. Ca marche nickel en local avec easyphp mais j'ai deux pages qui m'affichent des erreurs de ce type en distant:
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 '$detail42' at line 1
Si vous avez déjà vu ça ou si vous connaissez la solution, ça m'aiderait beaucoup! merci!
Configuration: Windows Vista Firefox 3.0.7
A voir également:
- Erreur sql syntax
- Logiciel sql - Télécharger - Bases de données
- Erreur 0x80070570 ✓ - Forum Windows 10
- Erreur s3 bbox - Forum Bbox Bouygues
- Erreur 4101 - Forum Carte graphique
- Erreur 3000 france tv - Forum Lecteurs et supports vidéo
4 réponses
En fait j'ai fait un require sur ma page de détails pour qu'il aille rechercher des infos dans mon fichier connexion.php.
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connexion = "mysql3.000webhost.com";
$database_connexion = "a6366789_reunion";
$username_connexion = "a6366789_reunion";
$password_connexion = "******";
$connexion = mysql_pconnect($hostname_connexion, $username_connexion, $password_connexion) or trigger_error(mysql_error(),E_USER_ERROR);
?>
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connexion = "mysql3.000webhost.com";
$database_connexion = "a6366789_reunion";
$username_connexion = "a6366789_reunion";
$password_connexion = "******";
$connexion = mysql_pconnect($hostname_connexion, $username_connexion, $password_connexion) or trigger_error(mysql_error(),E_USER_ERROR);
?>
$req79 = mysql_query('$detail42') or die(mysql_error());
$det36 = mysql_fetch_assoc($req79)
C'est cette requête ci-dessus. oui, je pense que ça doit être une version différente en effet.