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

@@ -21,6 +21,7 @@ function checknewuser($user) {
require_once("opendb.php");
$dbuser = $db->real_escape_string($user);
$q = $db->query("select * from user where name='$dbuser';");
if (!$q) error("server database error: ".$db->error);
if ($q->num_rows==0) {
echo json_encode($user);
} else {
@@ -31,4 +32,4 @@ function checknewuser($user) {
}
}
checknewuser($_REQUEST['user']);
?>
?>