PHP Classes

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: 21 years ago
Size: 590 bytes


Class file image Download

//////// 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'

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

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