ให้เอาโฟลเดอร์ couter ไปไว้ที่ / ของเว็บนะครับแล้วโค๊ดข้างล่างนี้ไปไว้ในส่วนที่ต้องการให้แสดงข้อมูล
แล้วอย่าลืมแก้ไขไฟส์ startconnect.php โดยการใส่ค่าต่างๆของฐานข้อมูล SQL
แล้วก็สร้างตารางฐานข้อมูล
CREATE TABLE `web_counter` (
`ct_no` int(11) NOT NULL auto_increment,
`ct_yyyy` int(4) NOT NULL default '0',
`ct_mm` int(2) NOT NULL default '0',
`ct_dd` int(2) NOT NULL default '0',
`ct_ip` varchar(15) NOT NULL default '',
`ct_count` int(2) NOT NULL default '0',
`ct_time` int(20) NOT NULL default '0',
PRIMARY KEY (`ct_no`)
) ;
#
# dump ตาราง `web_counter`
#
ระบบนับ ip ตัวนี้ผมพัฒนาต่อมาจาก SWM Active User 1.0
สิ่งที่เพิ่มเข้าไปก็มี ระบบตรวจเช็ค ip ของผู้เข้าชม และระบบ online ที่เที่ยงตรงกว่าของเดิม