PHP implementation of Simple message board function

Source: Internet
Author: User
This article mainly teaches you how to simply implement the PHP message board function, with a certain reference value, interested in small partners can refer to

This example for everyone to share the PHP message board function of the specific implementation code for your reference, the specific content as follows

HTML code

<p class= "Continer" > <p class= "Head" style= "Background-color:rgb (217,237,247); Height:50px;vertical-align: Middle ">

PHP code

Public Function hierarchicalauthority () {if (Isset ($_post[' Liuyan ')) {  $data [' nickname ']=$_post[' nickname '];  $data [' content ']=$_post[' content '];  $data [' email ']=$_post[' email '];  $data [' status ']=1;  $data [' Replytime ']=date (' y-m-d h:i:s ', Time ());  Print_r ($data);d ie ();  $user =m (' Daili_liuyan_guestbook ');  $maxid = $user->max (' id ');  $data [' id ']= $maxid +1;  $user->add ($data); Print_r ($_post);d ie (); } $guestbook = D (' Daili_liuyan_guestbook ')->select (); $this->assign (' guestbook ', $guestbook); $this->display ();}

Data Sheet: (table name is Daili_liuyan_guestbook)


Eventually:


The above is the whole content of this article, I hope that everyone's study has helped.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.