Location: PHPKode > scripts > Comments script with pagination > comm/create_table.php
<?php
include('config.php');             // file with main configurations

// comments table
$sql = "CREATE TABLE `comments` (id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, page VARCHAR(200), name VARCHAR(40), email VARCHAR(50), coment VARCHAR(750), site VARCHAR(77), dt int(11), ip VARCHAR(15), amail int(1) NOT NULL DEFAULT '0') CHARACTER SET utf8 COLLATE utf8_general_ci";

// if $_GET['tab'] to create tables
$obj = new BaseCM($cmysql);      // creates object instance to MPsite class
$reout = $obj->sqlExecute($sql) ? sprintf($obj->clsite['create_tables'], 'comments') : $obj->eror;
echo $reout;
Return current item: Comments script with pagination