function __construct parent __construct mysql_query CREATE TABLE IF NO

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
function __construct() {
parent::__construct();
mysql_query("CREATE TABLE IF NOT EXISTS `buy_subscribers` (
`id` int(11) NOT NULL auto_increment,
`full_name` mediumtext NOT NULL,
`phone` mediumtext NOT NULL,
`model_name` mediumtext NOT NULL,
`mod_title` mediumtext NOT NULL,
`complect_title` mediumtext NOT NULL,
`color_name` mediumtext NOT NULL,
`salon` mediumtext NOT NULL,
`price` mediumtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
);
}