chatbox-v10
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*-----------------------------
Ik heb alles in een zip gezet:
http://www.dark.uwhost2.net/scripts/chat/chat.zip
Mysql:
CREATE TABLE `messages` (
`id` int(5) NOT NULL auto_increment,
`poster` varchar(30) NOT NULL default '',
`bericht` varchar(255) NOT NULL default '',
`ip` varchar(15) NOT NULL default '',
`datum` int(12) NOT NULL default '0',
`soort` varchar(50) NOT NULL default 'bericht',
PRIMARY KEY (`id`)
) ;
CREATE TABLE `users` (
`username` varchar(30) NOT NULL default 'Nobody',
`ip` varchar(15) NOT NULL default '',
`lastid` int(10) NOT NULL default '0',
`lastreaction` int(12) NOT NULL default '0',
`active` int(1) NOT NULL default '1',
`lastcheck` int(12) NOT NULL default '0'
);
-----------------------------*/
?>
/*-----------------------------
Ik heb alles in een zip gezet:
http://www.dark.uwhost2.net/scripts/chat/chat.zip
Mysql:
CREATE TABLE `messages` (
`id` int(5) NOT NULL auto_increment,
`poster` varchar(30) NOT NULL default '',
`bericht` varchar(255) NOT NULL default '',
`ip` varchar(15) NOT NULL default '',
`datum` int(12) NOT NULL default '0',
`soort` varchar(50) NOT NULL default 'bericht',
PRIMARY KEY (`id`)
) ;
CREATE TABLE `users` (
`username` varchar(30) NOT NULL default 'Nobody',
`ip` varchar(15) NOT NULL default '',
`lastid` int(10) NOT NULL default '0',
`lastreaction` int(12) NOT NULL default '0',
`active` int(1) NOT NULL default '1',
`lastcheck` int(12) NOT NULL default '0'
);
-----------------------------*/
?>