模仿OSO的论坛(三)

5年以前  |  阅读数:696 次  |  编程语言:PHP 

post.php(发新贴子)

疑难问题 "; echo "parent.location.href='index.php'"; 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;}} ?>
主  题
表情图标
加贴内容

【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8