数据库的空间当然会随着你的论坛的帖子增加而增加了:)所以需要实现定期整理数据库的功能
做这样的论坛,mysql我想是可以的,
做这样的论坛,mysql我想是可以的,
解决方案 »
- [求助]网站被搜索引擎收录情况|结果的代码?
- 【求助贴】关于wamp中mysql中文乱码
- 请问php5在使用require_once的时候为什么会在ie7下多出一行空白行啊
- 请教关于无限分类的问题
- mysql创建新表的时候'字段数 '是什么意思,通常填写多少位的
- 谁能帮我啊,读图片问题,我没有找到相应的FAQ~~
- 救我啊!php网站问题!
- iis6下关于php的安装于设置的问题???
- 为何使用不了SESSION变量?
- 一个strict类型的错误为什么“关”不掉?
- 我在www.php.net上下载了安装文件名字是php-4.3.1.tar,解压缩以后没有exe文件也没有自动安装文件,这是怎么回事
- 请问怎么选择数据库数据?
比如说你的论坛里有1000篇文章,每篇大约500字,那么这个数据库的容量基本上就等于1k。
php+mysql对于小型开发是不错的搭配。
1.注册用户:数据库程序;建一个表记录user,password等。
2.标示每一个用户:设cookie
3.记录帖子:数据库程序;建几个关联的表,分别记录主题,user,time;
帖子等。
数据库容量不用担心;论坛怕人气旺吗?作个定期删除记录的程序;
决对没有问题!!!放心用吧!!!!
在www.sourceforge.org上下载
我不会:)我会这个:
http://www.mistruster.com/bbs/
session_start();
require ("config.php");//---数据库连接--
$sql = "select * from ".$GLOBALS["tb_forum"];
$allForums = @mysql_query($sql);
//----所有的大版块----
?>
<html>
<head>
<title>论坛菜单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<SCRIPT LANGUAGE="JavaScript">
function expandit(divid)
{
if(divid.style.display=="none")
{
divid.style.display="";
}
else
{
divid.style.display="none";
}
}
</SCRIPT><body bgcolor=#CFFFF0 text="#000000">
<?
print "<a href=startpage.php class=channel target=mainFrame>论坛首页</a>";
if($allForums)
{
while($theForum=mysql_fetch_object($allForums))
{
print "<div onclick=expandit(x".$theForum->id.")>";
print "<a class=tree href=#>";
print "<b>$theForum->name</b></div></a>";
print "<div id=x".$theForum->id." style=\"display:none\">";
$sql = $sql="select * from ".$GLOBALS["tb_topic"]." where forumid=$theForum->id";
$allTopics = @mysql_query($sql);
if($allTopics)
{
while ($theTopic=mysql_fetch_object($allTopics))
{
print "<a class=channel href=showmessages.php?topicid=$theTopic->id target=\"mainFrame\">$theTopic->name</a>";
print "<br>";
}
}
print "</div>";
}
}
?>
<hr>
</body>
</html>
非常的需要.
用javascript实现,最快