Login   Register  
PHP Classes
elePHPant
Icontem

File: install.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2002-08-30 09:11
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>";

?>