$req=$bd->prepare('INSERT INTO nouvelle (news_titre, news_texte) VALUES(?,?)');
$req->execute(array($_POST['news_titre'], $_POST['news_texte'])) or die(print_r($req->errorInfo()));
Qui fonctionne très bien, mais si je souhaite ajouter un champs supplémentaire pour insérer la date Now() cela ne fonctionne plus exemple :$req=$bd->prepare('INSERT INTO nouvelle (news_date, news_titre, news_texte) VALUES(NOW(),?,?)');
$req->execute(array($_POST['news_date'], $_POST['news_titre'], $_POST['news_texte'])) or die(print_r($req->errorInfo()));
J'ai cherché l'information et je ne trouve pas, merci de votre aide à tous...Cri13