Skip to content

Instantly share code, notes, and snippets.

@ConnorMcF
Created November 8, 2015 17:40
Show Gist options
  • Save ConnorMcF/8984c4e5ccd484b58292 to your computer and use it in GitHub Desktop.
Save ConnorMcF/8984c4e5ccd484b58292 to your computer and use it in GitHub Desktop.
include('int/dbinit.php');
$sql = "SELECT * FROM users WHERE steamid='".$_SESSION["steamid"]."'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
if(!$row["banned"] == 0) {
$reason = $row["banned"];
$isbanned = 1;
exit;
} else {
$isbanned = 0;
}
}
} else {
// not logged in
}
@ConnorMcF
Copy link
Author

whoops

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /a/long/directory/gmusic/header.php on line 1

@ygfyitydr
Copy link

ed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes

@ygfyitydr
Copy link

ed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment