
Originally Posted by
djr33
Hm. I wonder if that's an infinite loop. Add echo 1;
inside the loop-- if you get thousands of 1s, then you know it's an infinite loop that times out after probably 30 seconds (depending on server settings).
the result for this code:
PHP Code:
else {
echo "1";
$query = "INSERT INTO player_data (player_name, player_id, guid)
VALUES ('$player_name', '$player_id', '$guid')";
$result = $mysqli->query($query);
if ( false===$result ) {
printf("error: %s\n", mysqli_error($mysqli));
}
else {
echo 'Player: ' . $player_name . ' ' . $player_id . ' ' . $guid . ' has been added to the whitelist.';
}
}
$mysqli->close();
?>
else {
$query = "INSERT INTO player_data (player_name, player_id, guid)
VALUES ('$player_name', '$player_id', '$guid')";
$result = $mysqli->query($query);
if ( false===$result ) {echo "1";
printf("error: %s\n", mysqli_error($mysqli));
}
else {
echo 'Player: ' . $player_name . ' ' . $player_id . ' ' . $guid . ' has been added to the whitelist.';
}
}
$mysqli->close();
?>[/PHP]
and
PHP Code:
else {
$query = "INSERT INTO player_data (player_name, player_id, guid)
VALUES ('$player_name', '$player_id', '$guid')";
$result = $mysqli->query($query);
if ( false===$result ) {
printf("error: %s\n", mysqli_error($mysqli));
}
else {echo "1";
echo 'Player: ' . $player_name . ' ' . $player_id . ' ' . $guid . ' has been added to the whitelist.';
}
}
$mysqli->close();
?>
Is still a blank screen. Both have been run with
and Am I using it correctly?
Bookmarks