. */ require_once("conf.php"); // Create table wtagshoutbox /*$result = $sql->query("CREATE TABLE wtagshoutbox ( messageid int(11) not null auto_increment PRIMARY KEY, name varchar(30) not null, url varchar(100) not null, message text not null, ip int(11) not null, date datetime not null default '1970-01-01 00:00:00') "); */ $r = $sql->query("CREATE SEQUENCE mes_seq"); $result = $sql->query("CREATE TABLE wtagshoutbox ( messageid int not null default nextval('mes_seq') PRIMARY KEY, name text not null, url text not null, message text not null, ip int not null, date timestamp not null default '1970-01-01 00:00:00') "); if ($result == true) { echo '
The table wtagshoutbox has been created successfully!
'; } else { echo 'Can not create the table wtagshoutbox!'.mysql_error().'
'; } $result2 = $sql->query("SELECT * FROM wtagshoutbox"); // If the table is empty insert a first message if ($sql->count_rows($result2) == 0) { // First message is required $sql->query("INSERT INTO wtagshoutbox SET name= 'Pippa', url='http://www.spacegirlpippa.co.uk', message= 'Welcome to wTag 1.0 Beta! Please go to the installation guide - part two: http://spacegirlpippa.co.uk/minichat/shoutbox-installation-2.php for info about adding the shoutbox code to your existing pages. You may also want to see http://spacegirlpippa.co.uk/minichat/shoutbox-customising.php for info on customising the shoutbox and configuring its anti spam filter.', ip='', date=now()"); } ?>