website logo
Auteur
avatar
ixion

Forum » » Le coin des codeurs » » erreur synthaxe mysql


Posté : 1 juin 2005 à 14:45 icone du post

xcusez moi ya eu une erreur sur la page



voici lerreur
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 '' at line 1

voici le code
<html>
<head>
<title>Définition des pièces</title>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=ISO-8859" />
</head>
<div align="center"><H3>Tableaux de définition des pièces:</H3></div>
<body bgcolor=#087cd5 topmargin="20">
<?
/*if( !isset($DELL_ID) )
{
exit;
}*/

//déclaration de la requete
$Q= "delete from DEFINITION where ID=$DELL_ID";
echo $Q."<br>";


//connection a la base de données
mysql_connect("anakin", "histo_def", "12345");
mysql_select_db("test_histo");
$Resultat = mysql_query($Q);




Message édité par : ixion


Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=16781&forum=5