This article mainly introduces the simple implementation of the PHP message board function, has a certain reference value, now share to everyone, the need for friends can refer to
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:
Thank you for watching ~