Use PHP to build a message base. The following is the configuration description: For the convenience of configuration, the code is reorganized. now all the parameters to be set have been placed in config. in the php file, it should be easy to configure. the configuration instructions are as follows: For the convenience of configuration, the code is reorganized. now all the parameters to be set have been placed in config. php file, configuration should be very simple, there are detailed instructions. goal: Get your message book in a very short time !!! 1: create a database (to provide database space on the home page) with the front-end of phpMyAdmin open source. since its creation, it is very simple. after obtaining the name, remember to set config. change $ db_name of php to this name 2: create a table for the message Table (wait until config. change $ table_name of php to your name here ). the structure is: key_liuyan int (11) auto_increment primary key, // the primary key is created, and nikename varchar (20) is automatically added null // The nickname subject varchar (100) null // message topic date_created varchar (19) // message time ip_address varchar (15) // message of the message sender's IP address mediumtext null // message email_address varchar (50) null/ /The contact's email address zhuye_address varchar (50) null // the contact's home address huifu_biaozi int (1) default 0 // the moderator's reply flag huifu mediumtext null // the moderator's reply content oicq varchar (20) null // the owner's OICQ number can be completed using the following SQL !!! (If I pass the test, remember to change yourtable_name to a note. of course, do not change it.) create table your_liuyan_table (key_liuyan int (11) auto_increment primary key, nikename varchar (20) null, subject varchar (100) null, date_created varchar (19), ip_address varchar (15), message mediumtext null, email_address varchar (50) null, zhuye_address varchar (50) null, huifu_biaozi int (1) default 0, huifu mediumtext null, oicq varchar (20) null) 3: establish control Table: (put the name here in config. the structure of $ table_name_control in php is as follows: leibie varchar (20) primary key, value varchar (20) null can also use the following SQL statement: create table your_control_table (leibie varchar (20) primary key, value varchar (20) null) because this is your control table, add two control records on your own. The SQL statement is: insert and delete passwords: insert into your_control_tble (leibie, value) values (delete, 1332); insert reply password: insert into your_control_tble (leibie, value) values (huifu, 1332 ); The entered password is: 123, and the user name is blank! How do I calculate the relationship between the password and the inserted value? That's right. your password, for example, 123 adds up all three digits, equals 6, and then multiply 6 by 222 is the password value !!! 6*222 = 1332. now that you know the relationship, you can change it to another password. however, the user name should be blank, and, 4: after all, you only need to upload the files except readme.txt. post. php file <? Php require (config. php);?> <? Php $ nikename = $ arr_request [nikename]; if (strlen ($ nikename) = 0) {echo "<center> "; echo "
Finally, I reorganized the code for ease of configuration. now I have put all the parameters to be set in the config. php file. it should be easy to configure, which contains details...