PHPコードの次のSQLクエリが機能していません。誰かが私を助けてくれますか?
$reponse = $bdd->query("SELECT * FROM tasks WHERE destinataire = ':destinataire' ORDER BY maturity ASC");
$reponse->execute(array(
':destinataire'=>$_SESSION['login']
));
正しいクエリは次のとおりです。
$reponse = $bdd->prepare("SELECT * FROM tasks WHERE destinataire = :destinataire ORDER BY maturity ASC");