From 07df731755dacc320e74f7caec0d22705ef271ec Mon Sep 17 00:00:00 2001 From: mougnibas Date: Thu, 3 Aug 2023 12:39:42 +0200 Subject: [PATCH] =?UTF-8?q?message=20contextuel=20mots=20crois=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vacances.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/vacances.php b/vacances.php index db1f1cd..09b6b2a 100644 --- a/vacances.php +++ b/vacances.php @@ -34,9 +34,22 @@ if(isset($_POST["team"])){ ?>prepare("SELECT * FROM mots_croise WHERE name=? AND id=? AND trouve=?"); + $req->execute(array(htmlspecialchars($_POST["mot"]),(int) $_POST["id_mot"],TRUE)); + $mot_exist = $req->rowCount(); + + if($mot_exist == 1){ + ?>rowCount() == 0){ \ No newline at end of file +?>