reverted PHP version thet works with MySQL 5.7

This commit is contained in:
Marc Wäckerlin
2018-07-14 11:41:00 +02:00
parent da7a51bedb
commit 72495b4b01
17 changed files with 188 additions and 111 deletions

View File

@@ -1,5 +1,7 @@
<?php
global $db;
/// Send Error To Client
/** @return error message from server to client
@@ -13,6 +15,10 @@
}
@endcode */
function error($txt) {
error_log("**** ERROR: ".$txt);
if (isset($db) && is_object($db)) {
error_log("**** DATABASE ERROR: ".$db->error);
}
echo json_encode(array('success' => false, 'txt' => $txt));
exit;
}
@@ -83,4 +89,4 @@ EOT;
}
}
?>
?>