Location: PHPKode > scripts > AzDGOnlineUsers > azdgonlineusers/install.php
<?php

//////// Change configs //////////
$host     = 'localhost';
$database = 'database';
$user     = 'user';
$password = 'password';
$table    = 'ou';
//////////////////////////////////


//////// Don`t change ///////////


$mysql_link = mysql_connect($host, $user, $password);

$sql = "CREATE TABLE ".$table." (
  `time` time NOT NULL default '00:00:00',
  `ip` int(4) unsigned NOT NULL default '0'
) TYPE=MyISAM;";

mysql_db_query($database, $sql, $mysql_link) or die(mysql_error());

echo "<center><h1>Table for AzDGOnlineUsers has been installed.</h1>";

?>
Return current item: AzDGOnlineUsers