commit | 8192d55de25ca82e52d97ace6761c4752424a3b6 | [log] [tgz] |
---|---|---|
author | Andreu <andreuhuguet@gmail.com> | Sun Sep 22 16:51:39 2019 +0200 |
committer | Andreu <andreuhuguet@gmail.com> | Sun Sep 22 16:51:39 2019 +0200 |
tree | 7606552c47b85df47857bc4e8e69c0142b29bc24 | |
parent | 3b84a3b86ad4c360a95bf1a139cbafac9344e195 [diff] |
Admin page with SQL table creation and insertion
diff --git a/php/utils.php b/php/utils.php index 9a283c3..19b9146 100644 --- a/php/utils.php +++ b/php/utils.php
@@ -20,7 +20,7 @@ $conn->set_charset("utf8"); // Execute query and save result - $result = $conn->query($query); + if (!$result = $conn->query($query)) echo $conn->error; // Close the connection $conn->close();