数据库的空间当然会随着你的论坛的帖子增加而增加了:)所以需要实现定期整理数据库的功能
做这样的论坛,mysql我想是可以的,
做这样的论坛,mysql我想是可以的,
解决方案 »
- phpmyadmin出现了Fatal error: Call to a member function getName() 怎么都打不开了。
- 从数据库中取出的中文,不能再网页上显示?而且也无法在语句中用==进行比较?
- 求eclipse中配置php开发的教程
- 想问一下,如何通过php程序来控制css呢
- MYSQL出现乱码
- PHP高级程序设计:模式、框架与测试 (中文高清PDF版)
- 简单的sql语句问题。
- 怎样只刷新显示的数据,网页中别的地方不刷新?
- 关于php文件操作的问题,不明白!
- 用php+mysql实现菜单树的问题
- 我在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实现,最快