From d3a4f38e6ccaeb9959329abc41715e6cf7d91782 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Mon, 28 Nov 2022 16:55:15 +0100 Subject: [PATCH] test.php update --- Sources/php_script/script/test.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Sources/php_script/script/test.php b/Sources/php_script/script/test.php index 8512f2f..b2e92fc 100644 --- a/Sources/php_script/script/test.php +++ b/Sources/php_script/script/test.php @@ -4,5 +4,16 @@ include "config.php"; $res = connection(); $query = "SELECT id FROM gps"; -print(mysqli_query($res, $query)); +$results =mysqli_query($res, $query); +while ($row = $results->fetch_row()) { //For all the row in the database + print("\n"); + print($row[0]); + print("\n"); + print($row[1]); + print("\n"); + print($row[2]); + print("\n"); + print($row[3]); + print("\n"); +} \ No newline at end of file