You have an error in my request but which? – PHP Versions
The request of my function has a problem: function rdvDelete($rdv) { $pdo = connexion(); $sql = $pdo->prepare("DELETE FROM visitors,rdvs WHERE rdvs.idRdv = :rdv AND visitors.idVisitor = rdvs.idVisitor"); <-- line 34 $sql->execute(['rdv' => $rdv]); } $rdv = 3 !!! And this…