Source: Oracle Internet desktop Center (2) database writing author: elong 1. The following is the database writing html program. you can add the password function. Make the password into a variable and send it to the following written php program (as the mainstream development language. In this way, password protection is implemented: & lt; html & gt; & lt; head & gt; & lt; SyntaxHigh Source: Aesop
Desktop Center (2) database writing
Author: elong
1. The following is the html program written into the database. you can add the password function. Make the password into a variable and send it to the following written php program (as the mainstream development language. In this way, password protection is implemented:
Database
Database management program
(Best combination with PHP). php (as the mainstream development language) "> View database information
(As the current mainstream development language) "> Change Materials
2. the php program that handles the submission (as the mainstream development language) is as follows:
Search
Database data
MySQL (the best combination with PHP) _ connect ("localhost", "username", "password") or die ("cannot connect to the database! ");
$ Query = "insert into $ jpg values ('$ ID',' $ url', '$ mess', '$ fromx', '$ url1',' $ mess1 ', '$ fromx1', '$ url2', '$ mess2', '$ fromx2', '$ url3', '$ mess3',' $ fromx3 ')";
$ Result = MySQL (the best combination with PHP) _ db_query ("elong", $ query); // execute write
If (MySQL (the best combination with PHP) _ affected_rows () = 1)
{
Echo "the data has been added to the database $ jpg
";
Echo"
N
N
ID |
$ Id |
N
N
Url |
$ Url |
N
N
Thumbnail |
$ Mess |
N
N
Description |
$ Fromx |
N
N
Url address 1 |
$ Url1 |
N
N
Small |
$ Mess1 |
N
N
Description 1 |
$ Fromx1 |
N
N