[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
125568e992
commit
0b21152c54
3 changed files with 41 additions and 41 deletions
|
|
@ -3,7 +3,7 @@
|
|||
$uid = $_GET['uid'];
|
||||
$score = $_GET['score'];
|
||||
$query = "SELECT * FROM `bestscores` WHERE `userid`=".$uid;
|
||||
$query = mysqli_query($conn, $query);
|
||||
$query = mysqli_query($conn, $query);
|
||||
if (mysqli_num_rows($query) > 0) {
|
||||
if (mysqli_fetch_array($query)['scores'] < $score ) {
|
||||
$query = "UPDATE `bestscores` SET `scores`=".$score." WHERE `userid`=".$uid;
|
||||
|
|
@ -17,4 +17,4 @@
|
|||
window.location.replace('./main.php?id=".$uid."');
|
||||
</script>";
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue