conn.php
add.php
用户:
标题:
内容:
sql语句
create table `message` (
`id` tinyint(1) not null auto_increment,
`user` varchar(25) not null,
`title` varchar(50) not null,
`content` tinytext not null,
`lastdate` date not null,
primary key (`id`)
) engine=innodb default charset=gbk auto_increment=1 ;
不知道是哪里出了问题,一直插入不进数据。。
------解决方案--------------------
$sql=insert into message(id,user,title,content,lastdate) .
values('','$_post[user]','$_post[title]','$_post[content]',now());
content,lastdate 逗号写成.了。
