Probleme mysql error in your SQL syntax;
Résolu
smile88
Messages postés
66
Statut
Membre
-
smile88 Messages postés 66 Statut Membre -
smile88 Messages postés 66 Statut Membre -
Bonjour,
jai un probleme mysql quand jenvoi lé requete a ma base il m'affiche ce message d'erreur:
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 ''iga1'.'profil' ('ID_PROFIL', 'NOM_PROF', 'PROF_SALOME', 'PROF_MANTIS') VALU' at line 1
voici mon code php:
jai un probleme mysql quand jenvoi lé requete a ma base il m'affiche ce message d'erreur:
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 ''iga1'.'profil' ('ID_PROFIL', 'NOM_PROF', 'PROF_SALOME', 'PROF_MANTIS') VALU' at line 1
voici mon code php:
<?php
include('conf.php');
//récupération des valeurs des champs:
$nom = $_POST["nom"] ;
$s = $_POST["salome"];
$m = $_POST["mantis"];
//création de la requête SQL:
$sql = "INSERT INTO 'iga1'.'profil' ('ID_PROFIL', 'NOM_PROF', 'PROF_SALOME', 'PROF_MANTIS')
VALUES ( NULL,'$nom','$s','$m')" ;
$requete = mysql_query($sql) or die( mysql_error() ) ;
if($requete)
{echo "<script language='JavaScript'>alert('Profil ajouté avec succés')</script>";
}
else
{
echo"<script language='JavaScript'>alert('L ajout a échoué')</script>";
}
?>
A voir également:
- You have an error in your sql syntax; check the manual that corresponds to your mysql server version
- Dernière version ccleaner gratuit français - Télécharger - Nettoyage
- Splitcam ancienne version - Télécharger - Messagerie
- Girl in the basement streaming vf - Forum Cinéma / Télé
- Mysql community server - Télécharger - Bases de données
- Cvbs in 1 - Forum Autoradio
mais c la meme chose que je lai met se sont dé backquotes
probleme non resolu