Second, the php program that handles this submission:
< title>Search
Database data
localhost","username","password") or die("Unable to connect to the database!"); $query="insert into $jpg values ('$id','$url','$mess' ,'$fromx','$url1','$mess1','$fromx1','$url2','$mess2','$fromx2','$url3','$mess3','$fromx3' )" ; $result=mysql_db_query("elong",$query); //Perform writing
if (mysql_affected_rows()==1) { echo "Data has been Add database $jpg in
"; echo "
n
n
ID
$id
n
url address
$url
n
n
Small picture
n
n
Description
$fromx
n
n
url address 1
$url1
n 🎜>
Description 1
$fromx1n
n
url address 2
$url2
n < ;tr>n
Picture 2
$mess2n
n
Description 2
$fromx2
n
n
url address 3
$url3
n
n
Picture 3
$mess3
n 🎜>else echo "There is a problem with the system, please try again!:("; mysql_close(); ;/a>
http://www.bkjia.com/PHPjc/318033.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/318033.html
TechArticle
1. The following is the html program for writing to the database. You can add the password function. Make the password a variable and send it to the php program written below. In this way, password protection is achieved: html he...
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn