One, the following is the database write HTML program, you can join the password function. Send the password into a variable that is written in the following PHP program. This allows for password protection:
<title>Database</title>
Database management Program
View Database Data
Change information
Second, then the PHP program that handles this submission:
<title>Find</title>
Data for the database
mysql_connect ("localhost", "username", "password") or Die ("Cannot join database!");
$query = "INSERT into $jpg values (' $id ', ' $url ', ' $mess ', ' $fromx ', ' $url 1 ', ' $mess 1 ', ' $FROMX 1 ', ' $url 2 ', ' $mess 2 ', ' $ Fromx2 ', ' $url 3 ', ' $mess 3 ', ' $fromx 3 ');
$result =mysql_db_query ("elong", $query); Perform write
if (Mysql_affected_rows () ==1)
{
echo "Data has been added to the database $jpg
";
echo "
N
N
Id |
$id |
N
N
URL address |
$url |
N
N
Small map |
$mess |
N
N
Description |
$fromx |
N
N
URL Address 1 |
$url 1 |
N
N
Small Figure 1 |
$mess 1 |
N
N
Description 1 |
$FROMX 1 |
N
N
URL Address 2 |
$url 2 |
N
N
Small Figure 2 |
$mess 2 |
N
N
Description 2 |
$FROMX 2 |
N
N
URL Address 3 |
$url 3 |
N
N
Small Figure 3 |
$mess 3 |
N
N
Description 3 |
$FROMX 3 |
N
n ";
}
else echo "The system is out of the question, please try again!:(";
Mysql_close ();
?>
Back to Home
http://www.bkjia.com/PHPjc/318033.html www.bkjia.com true http://www.bkjia.com/PHPjc/318033.html techarticle One, the following is the database write HTML program, you can join the password function. Send the password into a variable that is written in the following PHP program. This enables password protection: HTML He ...