// 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>