[摘要]//此页面为say.php <? include "signup/mysql.inc"; if(id1) sql="select * from ta...
//此页面为say.php
<?
include "signup/mysql.inc";
if($id1){
$sql="select * from $table where id='$id1'"; //显示回复题目
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
$title="RE:".$row["title"];
}
$ip=$REMOTE_ADDR;
$sql="select * from user_stus where ip='$ip'"; //查询当前用户名
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
if(!$row) //判断用户是否登陆
{
echo "<html><div id=Layer2 align=center z-index:1><BR><BR><BR><BR>";
echo" <div id=Layer3 align=center z-index:2><img src=http://www.okasp.com/techinfo/pic/3.gif width=15 height=15></div>";
echo" <div align=center>";
echo" <p><font size=2 color=#FF33CC>嘻嘻!! 请先登陆</font></p>";
echo"<p><font size=2 color=#FF33CC><a href='".$PHP_SELF."?p=1&&table=$table'>返回</a></font></p> </div> </html>";
exit();
}
else $userid=$row["userid"];
if($ok)
{
if($title==""
关键词:BBS(php & mysql)完整版(一)