Build a message with PHP _php tutorial

Source: Internet
Author: User
Here is the configuration instructions: In order to configure the convenience, re-collation of the code, now has all the parameters needed to set up in the config.php file, the configuration should be very simple, there are keyholder instructions.   Goal: Take your message in a very kind!!! 1: Set up a database (to provide database space for the home page) there is a general front end of the phpMyAdmin open source. It's simple since it was created.   After taking a good name, remember to change config.php's $db_name to this name 2: Set up a message data sheet (etc, change the $table_name of config.php here to your name). Structure: Key_liuyan int (one) Auto_increment primary key,//main build, auto increment nikename varchar (+) NULL/nickname subject varchar (+) NULL// Message subject date_created varchar (19)//Message time IP_Address varchar (15)//Message person's IP address message mediumtext NULL//message Information email_address VA Rchar (+) NULL//message person's e-mail address zhuye_address varchar (1) NULL//message person's home address Huifu_biaozi int.//The default 0//Moderator reply flag Huifu me Diumtext NULL//Moderator reply content Oicq varchar () NULL//OICQ number of the message can be completed with the following SQL!!! (I test pass, remember to change the yourtable_name into a good note, of course, do not change) CREATE TABLE your_liuyan_table (Key_liuyan int) auto_increment PRIMARY key , nikename varchar () NULL, subject varchar (+) NULL, date_created varchar (+), ip_address varchar (.), Message Me Diumtext NULL, email_address varchar (.) NULL, zhuye_address VARchar (+) NULL, Huifu_biaozi int (1) default 0, Huifu mediumtext null, OICQ varchar () NULL) 3: Build a control Table: (also put the name here config.php $table_name_control) structure as follows: Leibie varchar () primary key, value varchar () Null can also be used with the following SQL statement: Create TA   ble your_control_table (leibie varchar) primary key, value varchar ($) NULL) because this is your control table, so you have to join the control record two;   The SQL statement is: Insert Delete password: INSERT into your_control_tble (Leibie, value) values (delete,1332);   Insert reply password: INSERT into your_control_tble (Leibie, value) values (huifu,1332);   This puts in the password is: 123, the user name is empty!   How to calculate the relationship between the password and the inserted value? So, your password, such as 123 of the three-digit numbers together, equals 6, and then 6 times 222 is the password value!!!   6*222=1332.   Knowing the relationship, of course you can change it to another password. But the user name is empty,,, 4: Everything is done, then just upload the file except Readme.txt. post.php file <?php require (config.php);? > <?php $nikename = $arr _request[nikename]; if (strlen ($nikename) ==0) {echo "<center> <center>"; Echo

http://www.bkjia.com/PHPjc/531944.html www.bkjia.com true http://www.bkjia.com/PHPjc/531944.html techarticle Here is the configuration instructions: In order to configure the convenience, re-organized the code, now has all the parameters needed to set up in the config.php file, the configuration should be very simple, there are detailed ...

  • 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.