Salam ; j'ai une requête préparée sous PDO qui me génère cette erreur :
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\dbfc\mod\controlmod.inc.php on line 137
un t string attendu !!!!!!
la ligne 137 du code :
...........
$modifdata = $cbd->prepare('UPDATE tab SET // ligne 137
datedec=: $_POST['datedec'],
m=: $_POST['m'],
f=: $_POST['f'] ');
try
{
$modifdata->bindParam(':datedec', $datefr, PDO:: PARAM_STR); // date

$modifdata->bindParam(':m', $_POST['m'], PDO:: PARAM_INT); // entier

$modifdata->bindParam(':f', $_POST['f'], PDO:: PARAM_INT); // entier
$modifdata->execute();
header ('location: tab.php');
}

catch ( Exception $e )
{
echo 'Erreur de requête : ', $e->getMessage();

}

j'arrive pas a détourné l'erreur !!!!!