模仿OSO的论坛(二)
read.php(做为现在的主流开发语言)(用来显示相关主题内容)<HTML><HEAD><TITLE>疑难问题</TITLE>
<LINK href="mypic/style.css" rel=STYLESHEET type=text/css></HEAD>
<BODY bgColor=#cccc99 bottomMargin=0 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" class=body_br >
<TBODY>
<TR>
<TD vAlign=top><BR>
<TABLE align=center border=0 cellPadding=3 cellSpacing=0 width=100%>
<TBODY>
<TD>主 题:<FONT class=mid
color=#993333><B>
<?php(做为现在的主流开发语言)
include "connect.inc.php(做为现在的主流开发语言)";
$query = "select * from guestbook where id=".$theme_id;
$res = MySQL(和PHP搭配之最佳组合)_query($query);
$row = MySQL(和PHP搭配之最佳组合)_fetch_array($res);
echo $row[theme];
?>
</B></FONT></TD></tr><tr>
<TD align=middle vAlign=top width=100%><A
href="post.php(做为现在的主流开发语言)"><IMG
border=0 src="/edu/UploadPic/2008-2/2008215175524325.gif""></A>
<A href="reply.php(做为现在的主流开发语言)?theme_id=<?php(做为现在的主流开发语言) echo $row[id] ?>"><IMG
border=0
src="/edu/UploadPic/2008-2/2008215175524985.gif""></A> <A
href="faq.php(做为现在的主流开发语言)?page=1"><IMG
border=0
src="/edu/UploadPic/2008-2/2008215175525802.gif""></A></TD></TR>
<?php(做为现在的主流开发语言)
if ($row[answer_count]>5)
{echo "<TR> <TD>分 页:<FONT class=mid >";
for ($j=1;$j<=($row[answer_count]-1)/5+1;$j++) {
if ($j==$page) echo "<FONT color=#999999> [".$j."]</FONT> </A>";
else echo "<A href=read.php(做为现在的主流开发语言)?theme_id=".$row[id]."&page=".$j."[".$j."]</FONT> </A>";
}}
echo " 共有帖子".$row[answer_count]."个</TD>";
补充:Web开发 , php ,