// This page is look. php
<?
Include "signup/MySQL. Inc ";
$ SQL = "select * from". $ table. "Where id = '$ id '";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
$ ROW = mysql_fetch_array ($ result );
$ Number = ++ $ row ["Number"];
$ SQL = "Update $ table set number = '$ number' where id =' $ id '";
Mysql_query ($ SQL) or die (mysql_error ());
?>
<HTML>
<Head>
<Title> Xiaoyang </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<?
Include "JS/menuhead. php"
?>
<Script language = "JavaScript">
<! --
Function mm_reloadpage (init) {// reloads the window if nav4 resized
If (init = true) with (Navigator) {If (appname = "Netscape") & (parseint (appversion) = 4 )){
Document. mm_pgw = innerwidth; document. mm_pgh = innerheight; onresize = mm_reloadpage ;}}
Else if (innerwidth! = Document. mm_pgw | innerheight! = Document. mm_pgh) location. Reload ();
}
Mm_reloadpage (true );
// -->
</SCRIPT>
</Head>
<Body bgcolor = "# ffffff" text = "#000000">
<?
Include "JS/menu. php ";
?>
<Div id = "layer6" style = "position: absolute; left: 409px; top: 29px; width: 118px; Height: 17px; Z-index: 1 "> </div>
<Div id = "layer5" style = "position: absolute; left: 63px; top: 61px; width: 464px; Height: 303px; Z-index: 2">
<Table width = "100%" border = "1" cellspacing = "0" cellpadding = "0" bordercolor = "# ffccff">
<Tr>
<TD width = "22%" Height = "17">
<Div align = "center"> <font color = "# ff3399" size = "2"> question </font> </div>
</TD>
<TD width = "78%" Height = "17">
<Div align = "center"> <font size = "2" color = "# 9966ff"> <? Echo $ row ["title"];?> </Font> </div>
</TD>
</Tr>
<Tr>
& Lt; TD width = "22%" Height = "24" & gt;
<Div align = "center"> <font color = "# ff3399" size = "2"> author </font> </div>
</TD>
& Lt; TD width = "78%" Height = "24" & gt;
<Div align = "center"> <font size = "2" color = "# 9966ff"> <? Echo $ row ["userid"];?> </Font> </div>
</TD>
</Tr>
<Tr>
& Lt; TD width = "22%" & gt;
<Div align = "center"> <font color = "# ff3399" size = "2"> content </font> </div>
</TD>
& Lt; TD width = "78%" & gt;
<Div align = "Left"> <font size = "2" color = "# 9966ff"> <? $ File = explode ("N", $ row ["content"]); $ num = count ($ file );
For ($ I = 0; $ I <$ num; $ I ++) echo "". $ file [$ I]. "<br>";?> </Font> </div>
</TD>
</Tr>
</Table>
<?
For ($ j = 1; $ j <6; $ J ++) // display the reply content
{
$ Re = "r". $ J;
If ($ row ["$ re"])
{
$ Id2 = $ row ["$ re"];
$ SQL = "select * From bbs_re where id = '$ id2 '";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
$ Row8 = mysql_fetch_array ($ result );
Echo "<br> ";
Echo "<Table width = 100% border = 1 cellspacing = 0 cellpadding = 0 bordercolor = # ffccff> <tr> ";
Echo "<TD width = 22% Height = 17> <Div align = center> <font color = # ff3399 size = 2> question </font> </div> ";
Echo "</TD> <TD width = 78% Height = 17> ";
Echo "<Div align = center> <font size = 2 color = # 9966ff> ". $ row8 ["title"]. "</font> </div> </TD> </tr> <tr> ";
Echo "<TD width = 22% Height = 24> ";
Echo "<Div align = center> <font color = # ff3399 size = 2> author </font> </div> </TD> ";
Echo "<TD width = 78% Height = 24> ";
Echo "<Div align = center> <font size = 2 color = # 9966ff> ". $ row8 ["userid"]. "</font> </div> </TD> </tr> <tr> ";
Echo "<TD width = 22%> <Div align = center> <font color = # ff3399 size = 2> content </font> </div> ";
Echo "</TD> <TD width = 78%> ";
Echo "<Div align = left> <font size = 2 color = # 9966ff>"; $ file = explode ("N", $ row8 ["content"]);
$ Num = count ($ file );
For ($ I = 0; $ I <$ num; $ I ++) echo "". $ file [$ I]. "<br> ";
Echo "</font> </div> ";
Echo "</TD> </tr> </table> ";
}
}
?>
<Br>
</Div>
<Div id = "back" style = "position: absolute; left: 455px; top: 30px; width: 85px; Height: 3px; Z-index: 3">
<HR color = "# ff9999" noshade>
</Div>
<Div id = "Goback" style = "position: absolute; left: 461px; top: 23px; width: 120px; Height: 16px; Z-index: 2">
<Div align = "center"> <a href = "php3.php? P = 1 & table = <? Echo $ table;?> "Target =" _ Self "onmouseover =" window. status = ''; return true"> <font size = "2" color = "# ff33ff"> return </font> </a> </div>
</Div>
<Div id = "lay" style = "position: absolute; left: 70px; top: 30px; width: 85px; Height: 3px; Z-index: 4">
<HR noshade color = "# ff9999">
</Div>
<Div id = "Laye" style = "position: absolute; left: 78px; top: 23px; width: 120px; Height: 16px; Z-index: 1">
<Div align = "center"> <a href = "say. php? Id1 = <? Echo $ id. "& table =". $ table;?> "Target =" _ Self "onmouseover =" window. status = ''; return true"> <font size = "2" color = "# ff33ff"> reply </font> </a> </div>
</Div>
<P> </P>
<P> </P>
</Body>
</Html>