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

Desktop Center (2) Database Writing_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:31:23878browse

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


数据库






数据库管理程序



查看数据库资料


改资料



图片url地址





图片小图





说明


图片url地址1





图片小图1





说明1


图片url地址2





图片小图2





说明2


图片url地址3





图片小图3





说明3





平分秋色水彩画



明星写真



动漫桌布



广告创意



其它类














Second, the php (as the current mainstream development language) program that handles this submission:

Find


database< /h1>
MySQL(The best combination with PHP)_connect("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(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
n
n
n
n
n
< tr>n
n
n
n

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/509077.htmlTechArticle1. 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 (as the current mainstream development language) program written below. This way...
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 picture$mess
Description$fromx
url address 1$url1