社区(php&&mysql)四_php基础
时间:2021-07-01 10:21:17
帮助过:4人阅读
echo "
";
echo "
";
echo ""; echo ""; echo ""; echo "夹肈 | "; echo "祇癬 | "; echo "莱 | "; echo " | "; echo "ら戳 | "; echo " "; $qsql="SELECT * from bbs_subj where id='$sid' "; $rs=mysql_db_query($sql['db'],$qsql); $row=mysql_fetch_array($rs); $id=$row['id']; $banner=$row['banner']; $poster=$row['poster']; $views=$row['views']; $wdate=sdatetime($row['wdate']); $docs=reAnum($id); echo ""; echo ""; if($sid!=$rid) { echo ""; echo $banner; echo ""; } else echo "$banner"; echo " | "; echo ""; echo $poster; echo " | "; echo ""; echo $docs; echo " | "; echo ""; echo $views; echo " | "; echo ""; echo $wdate; echo " | "; echo " "; $qsql="SELECT * from bbs_docs where sid='$sid' order by wdate"; $rs=mysql_db_query($sql['db'],$qsql); while($row=mysql_fetch_array($rs)) {
$id=$row['id']; $banner=$row['banner']; $poster=$row['poster']; $views=$row['views']; $wdate=sdatetime($row['wdate']); $docs=reAnum($id); echo ""; echo ""; if($sid!=$rid && $rid==$id) { echo " $banner"; } else { echo ""; echo " $banner"; echo ""; } echo " | "; echo ""; echo $poster; echo " | "; echo ""; echo " "; echo " | "; echo ""; echo $views; echo " | "; echo ""; echo $wdate; echo " | "; echo " ";
} echo " "; echo" |
";
} // ====
echo "";
if($type==1) {
if(substr($rebanner,0,3)!="Re:")
$rbanner="Re:".$rebanner;
else $rbanner=$rebanner;
}
echo "