Bonjour,

je voudrais savoir ce qui signifie le message d'eerue suivante :

Erreur de syntaxe près de 'option,logiciel,instruction) values('','12/12/2007','hoh' à la ligne 1

voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
<?php
//prise des valeurs relever sur le formulaire
$jour=$_POST['jour'];
$mois=$_POST['mois'];
$annee=$_POST['annee'];
$inter=$jour.'/'.$mois.'/'.$annee;
$nom=$_POST['nom'];
$local=$_POST['local'];
$bureau=$_POST['bureau'];
$adresseip1=$_POST['adresseip1'];
$adresseip2=$_POST['adresseip2'];
$adresseip3=$_POST['adresseip3'];
$adresseip4=$_POST['adresseip4'];
$adresse=$adresseip1.'.'.$adresseip2.'.'.$adresseip3.'.'.$adresseip4;
$packoffice=$_POST['packoffice'];
$option=$_POST['ajouter'];
$logispe=$_POST['logispe'];
$tel=$_POST['tel'];
$instruction=$_POST['instruction'];
 
if($packoffice!="oui")
{
	$option ="";
};
 
//connection au base
mysql_connect("localhost","root","");
mysql_select_db("FCP");
//requete SQL
$req = "INSERT INTO FCP (id,date,nom,localisation,bureau,tel,ip,packoffice,option,logiciel,instruction) 
				  values('','$inter','$nom','$local','$bureau','$tel','$adresse','$packoffice','$option','$logispe','$instruction')";
mysql_query($req) or die(mysql_error());
 
 
 
//affichage 
echo "$inter<br> $tel<br> $nom<br> $local<br> $bureau<br> $adresse<br> $packoffice<br> $option <br> $logispe<br> $instruction<br>";
 
 
 
?>