$connect= mysql_connect( $dbhost,$dbuser,$dbpass)or die ("ไม่สามารถเชื่อมต่อฐานข้อมูลได้");
CREATE database $dbname;
use $dbname;
$sql1 ="CREATE table admin(
id int(3) not null auto_increment,
username char(16) not null,
password char(16) not null,
primary key (id),
) type=MyISAM";
$sql2 ="CREATE table blog(
id int(11) not null auto_increment,
title text not null,
message text not null,
time varchar(10),
picture blob,
primary key (id),
) type=MyISAM";
$sql3 ="CREATE table comment(
id int(11) not null auto_increment,
name char(11) not null,
email char(30) not null,
comment text not null,
time varchar(10),
primary key (id),
) type=MyISAM";