Home  >  Article  >  Backend Development  >  PHP Desktop Center (2) Database Writing_PHP Tutorial

PHP Desktop Center (2) Database Writing_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 15:56:31784browse

一、以下是数据库的写入的html程序,你可以加入密码功能。把密码做成变量发入下面那个写入的php程序。这样就实现了密码保护了: 
 
 
数据库 
 
 
 

 

 

数据库管理程序
 

 
查看数据库资料 

 

改资料
 

 
 

图片url地址 
 

 

 
图片小图 
 

 

 
说明 
 

 

图片url地址1 
 

 

 
图片小图1 
 

 

 
说明1 
 

 

图片url地址2 
 

 

 
图片小图2 
 

 

 
说明2 
 

 

图片url地址3 
 

 

 
图片小图3 
 

 

 
说明3 
 

 

 
平分秋色水彩画 
 

 
明星写真 
 

 
动漫桌布 
 

 
广告创意 
 

 
其它类 
 

 

 
 

 

 
 




Second, the php program that handles this submission:

< title>Search


Database data


$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
n
n
n
n
n
n
n 🎜>n
n
n
< ;tr>n
n
n
n
n
n
n
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...

Statement:
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
ID$id
url address$url
Small picturen
Description$fromx
url address 1$url1
Description 1$fromx1
url address 2$url2
Picture 2$mess2
Description 2$fromx2
url address 3$url3
Picture 3 $mess3