21,887
社区成员
发帖
与我相关
我的任务
分享
<?php
include("conn.php");
if($_POST['submit']){
$sql = "insert into message (id,user,title,content,lastdate) " .
"values('','$_POST[user],'$_POST[title]','$_POST[content]',now())";
@mysql_query($sql) or die("fail");
}
?>
$sql = "insert into message (id,user,title,content,lastdate) " .
"values('','$_POST[user],'$_POST[title]','$_POST[content]','".now()."')";
$sql = "insert into message (id,user,title,content,lastdate) " .
"values('','".$_POST['user']."','".$_POST['title']."','".$_POST['content']."',now())";
$conn = @mysql_connect("localhost","root","") or die("wrong"); mysql_select_db("bbs",$conn);
mysql_query("set names 'GBK'");