T
Tinkz
Guest
I´m getting an error on my geisor aac, this might explain
When i reload the website it works fine but after 1 - 2 seconds it returns to that error again.
online.php
When i reload the website it works fine but after 1 - 2 seconds it returns to that error again.
online.php
PHP:
<?php
include("config/config.php");
//connection to the database
$dbhandle = mysql_connect($config['site']['sqlHost'], $config['site']['sqlUser'], $config['site']['sqlPass'])
or die("ERROR #CONN");
//select a database to work with
$selected = mysql_select_db($config['site']['sqlDatabase'],$dbhandle)
or die("ERROR #DB");
//execute the SQL query and return records
$result = mysql_query("SELECT * FROM players, players_online WHERE players.id = players_online.player_id");
$num_rows = mysql_num_rows($result);
echo '<font color="lime" class="View">'.$num_rows.'</font> <font color="orange">/</font> <font color="red">1000</font>';
//close the connection
mysql_close($dbhandle);
?>
Last edited by a moderator: