From b80e1619aa25de64562022b54f208fa304cfed7d Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Tue, 10 Jan 2023 08:23: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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api-rest/index.php b/api-rest/index.php index e1332ec..cbb18a5 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -2,8 +2,10 @@ $conn = new mysqli("BOB_PARTEAM-mysql",getenv("MYSQL_USER"),getenv("MYSQL_PASSWORD"),getenv("MYSQL_DATABASE")); $conn->query("DROP TABLE IF EXISTS `common_absences`;"); $conn->query("INSERT INTO `T_H_SKIN_SKI` VALUES(NULL,'Bob Classic', 'https://codefirst.iut.uca.fr/git/BOB_PARTEAM/BOB_PARTY/raw/branch/typescript/bob_party/assets/BobsSkins/BobClassic.png', 0);"); - - + $res = $conn->query("SELECT * FROM T_H_SKIN_SKI"); + while ($une_valeur = $res->fetch_array()) { + echo $une_valeur["SKI_NAME"]; + } /* $conn->query("CREATE TABLE coucou (`COUCOU_ID` int(10) unsigned NOT NULL,`COUCOU_TEXT` char(10) NOT NULL);"); $res = $conn->query("SELECT * FROM coucou");