PHP;">
CREATE TABLE `seminar_upload_img` (
`id` int(11) NOT NULL AUTO_INCREMENT,`img_name` varchar(255) DEFAULT NULL COMMENT '图片名称',`img_url` varchar(255) DEFAULT NULL COMMENT '图片路径',`create_time` text,PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
在公共配置文件Common/Conf.PHP中连接数据库,并配置地址
'MysqL','DB_HOST'=>'127.0.0.1','DB_NAME'=>'seminar','DB_USER'=>'root','DB_PWD'=>'root','DB_PORT'=>3306,'DB_PREFIX'=>'seminar_','DB_CHARSET'=>'utf8','SHOW_PAGE_TRACE'=>true,/*地址替换*/
'TMPL_PARSE_STRING'=>array(
'__UPLOAD__'=>__ROOT__.'/Public/Uploads',),);
视图文件Upload/index.html中
PHP;">
<Meta http-equiv="Content-Type" content="text/html; charset=UTF-8">