From 4a7255afe0173fa734a999314e517fdb879654cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20BOUHOURS?= Date: Mon, 9 Jan 2023 22:25:03 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'api-rest/index.php?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-rest/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api-rest/index.php b/api-rest/index.php index b2711d0..022c93a 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -1,9 +1,8 @@ ".$conn->query("CREATE TABLE coucou (`COUCOU_ID` int(10) unsigned NOT NULL,`COUCOU_TEXT` char(10) NOT NULL);"); - echo $conn->error; - echo "2>".$conn->query("INSERT INTO `coucou` VALUES(1,'TOTO');"); - echo $conn->error; + $conn->query("DROP TABLE IF EXISTS `common_absences`;") + $conn->query("CREATE TABLE coucou (`COUCOU_ID` int(10) unsigned NOT NULL,`COUCOU_TEXT` char(10) NOT NULL);"); + $conn->query("INSERT INTO `coucou` VALUES(1,'TOTO');"); $res = $conn->query("SELECT * FROM coucou"); while ($une_valeur = $res->fetch_array()) { echo $une_valeur["COUCOU_ID"]." ".$une_valeur["COUCOU_TEXT"];