PHP development message board tutorial message board publishing and display

Create the "ressage.php" file


We divided the page into three parts, one part is placed Our background image, part of it is to display our messages, and part of it is the page where we post our messages

51.jpg


We are The divs were laid out with CSS respectively, and the form content was judged by JS. In the message display section, paging was done. In the message section, we used JQ's hidden field effect.

The code is as follows

$total_page ? $total_page:$page;//当下一页数大于最大页数时的情况 //分页设置初始化 $start=($page-1)*$perpage; $sql= "select * from ressage_user order by id desc limit $start ,$perpage"; $result=mysqli_query($conn,$sql); ?>     留言板      

留言内容

  
姓名:留言时间: 删除
你的留言:
">首页 上一页 $i"; }else{ echo "$i"; } } ?> 下一页 ">末页


Continuing Learning
||
$total_page ? $total_page:$page;//当下一页数大于最大页数时的情况 //分页设置初始化 $start=($page-1)*$perpage; $sql= "select * from ressage_user order by id desc limit $start ,$perpage"; $result=mysqli_query($conn,$sql); ?> 留言板

留言内容

  
姓名:留言时间: 删除
你的留言:
">首页 上一页 $i"; }else{ echo "$i"; } } ?> 下一页 ">末页
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!