您的位置:成都3c购物 >> 资讯中心 >> 模仿OSO的论坛(三)-php教程
疑难问题
模仿OSO的论坛(三)-php教程
转载自:互联网 作者:cd3c.com
您正在看的php教程是:模仿OSO的论坛(三)。 post.php(发新贴子)
if (!$cookie_user)
{echo "";}
else {include ("connect.inc.php");
$query = "select * from my_user where user='".$cookie_user."' and password='".$cookie_password."'";
$res = mysql_query($query);
if (!$res)
{echo "";}
include "connect.inc.php";
if ($theme) {$content=htmlspecialchars($content);
$content=nl2br($content);
$theme=htmlspecialchars($theme);
$theme=nl2br($theme);
$query = "INSERT INTO guestbook (name,type,theme,content,icon,time_open,time_close,answer_count,answer_name) VALUES ('".$cookie_user."',1,'".$theme."','".$content."',".$icon.",now(),now(),1,'".$cookie_user."')";
$res = mysql_query($query);
if ($res)
{echo "";}
else echo $query;}}
?>
