<?php
Your username and password, as well as the database name, and table name, defined here once!!!
Because the user name and password is afraid to be seen through the browser, so use the extension of PHP, so through browsing can not see the!!!.
$username = ' your_name '; User name
$password = ' Your_password '; Password
$hostname = ' localhost '; Host name, generally all for localhost
$db _name= ' Your_db_name '; Database name
$table _name= ' your_liuyan_table '; The name of the table that holds the message
$table _name_control= ' your_control_table '; Control Table Name
$number _records_to_display=5; The number of message bars per page!
$hang _zifu_number=50; The number of line characters to wrap!
Connect to the database, here!!!
$id _link= @mysql_connect ($hostname, $username, $password);
if (! $id _link) {
Affy_message ("The connection to the local dtabase has failed.");}
Processing parameters, all subsequent parameters can be obtained by $arr _request[' name ', whether post or get!!!
if ($action = "Delete")
$str _sql= "Select value from $table _name_control where leibie= ' delete ';";
else if ($action = "Huifu")
$str _sql= "Select value from $table _name_control where leibie= ' Huifu ';";
Else
echo "Error";
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.