search
Homephp教程php手册php桌面中心(二) 数据库写入

php桌面中心(二) 数据库写入

Jun 13, 2016 pm 12:33 PM
htmlphponecentertwowriteFunctionjoin inCanpassworddatabaseyesdesktopofprogram

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

 
数据库 
 
 
 

 
 

数据库管理程序
 

 
查看数据库资料 

 

改资料
 

 
 

图片url地址 
 

 

 
图片小图 
 

 

 
说明 
 

 

图片url地址1 
 

 

 
图片小图1 
 

 

 
说明1 
 

 

图片url地址2 
 

 

 
图片小图2 
 

 

 
说明2 
 

 

图片url地址3 
 

 

 
图片小图3 
 

 

 
说明3 
 

 

 
平分秋色水彩画 
 

 
明星写真 
 

 
动漫桌布 
 

 
广告创意 
 

 
其它类 
 

 

 
 

 

 
 
 
 
 

二、然后是处理这个提交的php程序: 
 
查找 
 
 

数据库的数据

 
 
mysql_connect("localhost","用户名","密码") or die("无法联接数据库!"); 
$query="insert into $jpg values ('$id','$url','$mess','$fromx','$url1','$mess1','$fromx1','$url2','$mess2','$fromx2','$url3','$mess3','$fromx3')" ; 
$result=mysql_db_query("elong",$query); //执行写入 

if (mysql_affected_rows()==1) 

echo "数据已加放数据库 $jpg 中

"; 
echo "n 


























ID $id
url地址 $url
小图 $mess
说明 $fromx
url地址1 $url1
小图1 $mess1
说明1 $fromx1
url地址2 $url2
小图2 $mess2
说明2 $fromx2
url地址3 $url3
小图3 $mess3
说明3 $fromx3
n"; 

else echo "系统出了问题,请重试!:("; 
mysql_close(); 
?> 
回到首页 
 
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use