0

0

php mysql 留言本应用实例

PHP中文网

PHP中文网

发布时间:2016-05-17 09:33:01

|

1100人浏览过

|

来源于php中文网

原创

实例说明制作一个php+mysql留言本

 
 
 
 
 
Untitled Document 
 
 
 
 

留言板 - 管理登陆

浏览留言 | 发表留言

用户名:
密码:


 
 
 
 
 
 
 
 
Untitled Document 
 
 
 
 

留言板 - 管理页面

浏览留言 | 发表留言 | 退出登陆

留言者用户名 留言标题

回复留言

删除留言

删除回复

审批留言

 
"; 
} 
$colname_rs = "1"; 
if (isset($_GET['postid'])) { 
$colname_rs = (get_magic_quotes_gpc()) ? $_GET['postid'] : addslashes($_GET['postid']); 
} 
mysql_select_db($database_conn, $conn); 
$query_rs = sprintf("SELECT * FROM posts WHERE postid = %s", $colname_rs); 
$rs = mysql_query($query_rs, $conn) or die(mysql_error()); 
$row_rs = mysql_fetch_assoc($rs); 
$totalRows_rs = mysql_num_rows($rs); 
?> 
 
 
 
Untitled Document 
 
 
 
 

留言板 - 管理页面 - 回复留言

管理页面 | 退出登陆

留言标题:
留言内容:
回复内容: