基于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"> </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>"));
补充:Web开发 , php ,