File: install.php

Recommend this page to a friend!
  Classes of AzDG  >  AzDGOnlineUsers  >  install.php  >  Download  
File: install.php
Role: Configuration script
Content type: text/plain
Description: Install table script
Class: AzDGOnlineUsers
Show online users, hits at this moment at the site
Author: By
Last change: More quick table parameters
Date: 19 years ago
Size: 590 bytes
 

Contents

Class file image Download
<?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>";

?>

For more information send a message to info at phpclasses dot org.