Classic multiplayer game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
643 B

<?php
ini_set("log_errors", 1);
ini_set("error_log", ZOOPZ_LOG);
ini_set('display_errors', 0);
ini_set('display_startup_errors', 1);
error_reporting( E_ALL);
$dblink = mysqli_connect(ZOOPZ_HOST, ZOOPZ_USERNAME, ZOOPZ_PASSWORD);
if (!$dblink) {
die('Zoopz! We are currently experiencing issues, please try again later.');
}
mysqli_select_db($dblink, ZOOPZ_DATABASE);
function zoopz_query($string){
global $dblink;
$result = mysqli_query($dblink, $string);
$mysql_error = mysqli_error($dblink);
if ($mysql_error != '') {
error_log( $mysql_error . "\n" . print_r(debug_backtrace(), true));
}
return $result;
}