The following is a description of the configuration:
In order to configure the convenience, the reorganization of the code, has now put all the required parameters are placed in the config.php file, configuration should be very simple, there are Shishi instructions.
Objective: To get your message in very kind!!!
1: Establish a database (to provide database space to the home page)
The general phpMyAdmin is the front end of the open source Ma. It's very simple since it was created. After you get your name, remember to change config.php's $db_name to that name.
2: The establishment of the Message data table (wait for the config.php $table_name to change to Here you name).
Structure is:
Key_liuyan Int (one) Auto_increment primary key,//main built, automatically added
Nikename varchar () NULL//Nickname
Subject varchar (MB) NULL//Message theme
date_created varchar (19)//Message time
IP_Address varchar (15)//Message person's IP address
Message Mediumtext NULL//messages
email_address varchar (x) NULL//e-mail address of the message person
zhuye_address varchar (%) null//home address of the message person
Huifu_biaozi int (1) default 0//Moderator reply flag
Huifu mediumtext Null/Moderator reply content
OICQ varchar () NULL//OICQ number of the message person
The following SQL can be used to complete the!!! (I test through, remember to change the yourtable_name to a good point of note, of course, do not change the line AH)
if (! $result) {
Affy_error_exit (' SQL Insert Execution has failed. ');
}
Else
{
echo "! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" ";
echo "<HTML> <HEAD> <TITLE> publish article </TITLE>";
echo "<meta content=" text/html; charset=gb2312 "http-equiv=content-type>";
echo "<meta http-equiv=" REFRESH "content=" 2; Url=display.php ">";
echo "echo "<ul> Thank you for your message, will automatically display the message content";
echo "<br>";
echo "<a href=display.php> If your browser does not automatically return to the Guest Book home page,?
Please click here to return. ";
echo "</a> </ul>";
Exit
}
? >
index.html file
<center>
<title> Thank you for the message! </title>
<font color=blue> My message this </font>
<font color=navy> First of all thank you for your message, every word of yours I will read CAREFULLY!!! </font>
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