From 112888506c3aaef52090218786dbf46107d13a4a Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Tue, 10 Jan 2023 00:00:21 +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 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/api-rest/index.php b/api-rest/index.php index 66eb9a3..984a8dd 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -4,13 +4,11 @@ $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"); - $res = $conn->query("SELECT * FROM T_H_SKIN_SKI"); - echo $res; - //while ($une_valeur = $res->fetch_array()) { - //echo $une_valeur["COUCOU_ID"]." ".$une_valeur["COUCOU_TEXT"]; - //echo json_encode($une_valeur); - //} - exit; + + while ($une_valeur = $res->fetch_array()) { + echo $une_valeur["COUCOU_ID"]." ".$une_valeur["COUCOU_TEXT"]; + } + //exit;