Home >Backend Development >PHP Tutorial >一个简易需要注册的留言版程序_PHP

一个简易需要注册的留言版程序_PHP

WBOY
WBOYOriginal
2016-06-01 12:28:57895browse

1.guestbook.php(留言程序)



天地网络留言版





$PAGESIZE=5;
$db=mysql_connect("localhost","root","");
mysql_select_db("lyanban",$db);
$result=mysql_query("SELECT * FROM message order by date desc",$db);
$rowcount=mysql_num_rows($result);
$PAGES=CEIL($rowcount/$PAGESIZE);
if($rowcount==0)
{echo "
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn