diff options
author | cos <cos> | 2018-05-16 14:35:43 +0000 |
---|---|---|
committer | cos <cos> | 2018-05-16 14:35:43 +0000 |
commit | 1f52bb6406957124ec1bfd4da7af7216d78d99f5 (patch) | |
tree | c326ab1a4e02f13ee16df1d9cea57a91d00c2f32 | |
parent | ca60904129788608a0f9f2dfa7b2605d87556df4 (diff) | |
download | RunnerUpLive-1f52bb6406957124ec1bfd4da7af7216d78d99f5.zip |
Make tracking actually work.fix/fixes
The unreachable break statement yielded in a "PHP Fatal error" and
the other few lines are required for working towards a freshly created
database.
-rwxr-xr-x | requests.php | 6 |
1 files 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=""){ |