Php creates a message board. [Source Code]-PHP source code

Source: Internet
Author: User
Ec (2); today, let's talk about making a simple message board with php. First, let's analyze the message board. Step 1: Design the database. step 2: Set the html page, that is, the message page, Step 3: php processing page, and save it to the database. step 4: Message Display page. now let's take a look at Step 1: CREATETABLEIFNOTEXISTS 'gx _ guestbook '(& nbsp; 'id' int (4) NOTNULLauto_ I script ec (2); script

Today, let's talk about how to use php to make a simple message board. First, let's analyze the message board,

Step 1: Design the database.

Step 2: Set the html page, that is, the message page,

Step 3: Save the php processing page to the database.

Step 4: Message Display page.

Now let's take a look at the first step:

Create table if not exists 'gx _ guestbook '(
'Id' int (4) not null auto_increment,
'Gx _ title' varchar (200) default NULL,
'Gx _ content' mediumtext,
'Gx _ time' datetime default NULL,
'Gx _ tel 'varchar (20) default NULL,
'Gx _ mail' varchar (50) default NULL,
'Gx _ object' varchar (100) default NULL,
Primary key ('id ')
) ENGINE = InnoDB default charset = gb2312 AUTO_INCREMENT = 10;

There is nothing to say about creating a database.

Next, let's take a look at Step 2 setting the html message page.


Customer message




The above is the message page,

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.