[SQL] Erreur de syntaxe sur ma requête UPDATE
bonjour,
précision : dans la table le champ 'mta' est décimal (5)
lors du chargement il est ''. (est-ce possible ?:mrgreen:)
le résultat de l'update :
Code:
1 2 3 4 5
|
--------------------------------------------------------------------------------
UPDATE table `strasbourg50`.`fsg08` SET mtp='100.', mta='', mtd='0',fiscalite='1', mt='100', breg='',dateins='17.09.2007', heureins='23.32.02', dateyy='2007' WHERE nomp='mossieur'
--------------------------------------------------------------------------------
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 'table `strasbourg50`.`fsg08` SET mtp='100.', mta='', mtd='0', |
l'update lui même,
Code:
1 2 3 4 5
|
$sql = "UPDATE table `strasbourg50`.`fsg08` SET
mtp='$mtp.', mta='$mta', mtd='$mtd',fiscalite='$fiscalite', mt='$mt',
breg='$breg',dateins='$dateins', heureins='$heureins', dateyy='$dateyy'
WHERE nomp='$nomp'"; |
quelle est mon erreur ? (eh oui cela ne se fait pas tout seul!):roll:
merci