PHP instance 5: PHP + MYSQL message board

Source: Internet
Author: User
Tags echo date
: This article mainly introduces the PHP + MYSQL message board in PHP instance 5. if you are interested in the PHP Tutorial, please refer to it. The database message table is:


Liuyan. php file for posting messages

 0) {echo "the data record is successfully inserted. The last inserted data ID is:". mysql_insert_id ()."
";} Else {echo" data record insertion failed, error code: ". mysql_errno ().", error cause: ". mysql_error ()."
";}*/Mysql_close ($ link) ;}?>

View the message file show_liuyan.php

           
 
 
Title: User:

"> Edit |"> Delete

Content:

Posting Date:

Edit the message file pre_edit_liuyan.php

   
  

Process the edited message file post_edit_liuyan.php

  
 "; Echo" window. location. href = '$ url' "; echo" script ";?>

Delete the message file delete. php

  
 "; Echo" window. location. href = '$ url' "; echo" script ";?>

The above section describes the PHP + MYSQL message board in PHP instance 5, including some content. I hope to help some friends who are interested in PHP tutorials.

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.