基於mysql的論壇(4)

## index.php(做為現在的主流開發語言)
<html>
<head>
<title>論壇</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″>
</head>

<frameset cols=”125,*” rows=”*” border=”0″ frameborder=”0″>  
  <frame src=”left.php(做為現在的主流開發語言)” name=”left” scrolling=”AUTO” frameborder=”YES” bordercolor=”#000000″>
  <frame src=”right.htm” name=”main” scrolling=”AUTO”>
</frameset>
<noframes><body bgcolor=”#FFFFFF”>

</body></noframes>
</html>
## left.php(做為現在的主流開發語言)
<?php(做為現在的主流開發語言)
$fp=fopen(“file/counter.txt”,”r”);
$counter=fgets($fp,8);
fclose($fp);
$counter=$counter+1;
$fp=fopen(“file/counter.txt”,”w”);
fputs($fp,$counter);
fclose($fp);
require(“config.inc.php(做為現在的主流開發語言)“);
$sql=”select * from boardinfo”;
$sql_result=MySQL(和PHP搭配之最佳組合)_query($sql);
$sql_row=MySQL(和PHP搭配之最佳組合)_fetch_array($sql_result);
?>
<html>
<head>
<title>版面列表</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″>
<link href=”css/new.css” rel=stylesheet>
</head>

<body background=”image/bg.gif” bgcolor=”#FFFFFF”>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”0″>
  <tr>
    <td align=”center”>&nbsp;</td>
  </tr>
  <tr>
    <td align=”center”><a href=”apply.php(做為現在的主流開發語言)” target=”main”>註冊用戶</a></td>
  </tr>
  <tr>
    <td align=”center”><font color=”#666666″>———</font></td>
  </tr>
<?php(做為現在的主流開發語言)
do
{
echo”<tr>”;
echo”<td align=”center”><a href=”list.php(做為現在的主流開發語言)?board=$sql_row[name]” target=”main”>$sql_row[chinesename]</a></td>”;
echo”</tr>”;
}while($sql_row=MySQL(和PHP搭配之最佳組合)_fetch_array($sql_result));
?>
<tr>
    <td align=”center”><font color=”#006666″>———</font></td>
  </tr>
  <tr>
    <td height=”11″>
      <script src=file/X86tree.js></script>
      <script language=javascript>
        img_t1=”image/t1.gif”;
        img_t2=”image/t2.gif”;
        tree=new TreeView(0,0,640,300);
        tree.AddImage(0,”image/dot.gif”);
        tree.AddImage(1,”image/close.gif”);
        tree.AddImage(2,”image/open.gif”);

        m1=new Nodes(“m1″,tree.ImageList,”論壇轉向”,0,2,””);
        m1.Add(new Node(“站點首頁”,1,0,”<a href=http://www.jlbusiness.com target=_top>”));                                                              m1.Add(new Node(“論壇首頁”,1,0,”<a href=right.htm target=main>”));

發佈留言