From 1f52bb6406957124ec1bfd4da7af7216d78d99f5 Mon Sep 17 00:00:00 2001 From: cos Date: Wed, 16 May 2018 14:35:43 +0000 Subject: Make tracking actually work. The unreachable break statement yielded in a "PHP Fatal error" and the other few lines are required for working towards a freshly created database. --- requests.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/requests.php b/requests.php index 03c2191..97042e4 100755 --- a/requests.php +++ b/requests.php @@ -112,8 +112,11 @@ else { $query->bind_param('i', $userid ); $query->execute(); $query->store_result(); - $query->bind_result($tripid,$tripname); + $query->bind_result($tripid,$db_tripname); $query->fetch(); + if ( $db_tripname ) { + $tripname = $db_tripname; + } $num = $query->num_rows; $query->free_result(); $query->close(); @@ -167,7 +170,6 @@ else { quit(7,$mysqli->error); } quit(0); - break; } function quit($errno,$param=""){ -- cgit v1.2.3