Problème dans l'insertion
Bonjour,
J'ai un problème dans l'insertion .
Le champ DATE_CALENDRIER de type date.
Le champ date_debut de type datetime
Code:
1 2 3 4 5 6
|
$date_debut='2011-09-28 12:38:47.480';
$date=gmdate("Y-m-d");
$matricule='iii';
$ref_activite='uuu';
$motif='motif'; |
Code:
1 2 3
| INSERT INTO T_ACTIVITE_HISTO(REF_ACTIVITE,MATR,
ETAT_AVANC,MOTIF,ETAT,DATE_DEBUT,DATE_CALENDRIER)
VALUES('$ref_activite','$matricule','etat','$motif','etat',$date_debut,'$date') |
Code:
1 2
| Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Syntaxe incorrecte vers '12'., SQL state 37000 in SQLExecDirect in C:\Documents and Settings\PC\Bureau\PC\controleur\suspendreActivite.php on line 67
37000 |
Merci de votre aide