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,