php桌面中心(二) 数据库写入
一、以下是数据库的写入的html程序,你可以加入密码功能。把密码做成变量发入下面那个写入的php程序。这样就实现了密码保护了:
二、然后是处理这个提交的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 "
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 |
}
else echo "系统出了问题,请重试!:(";
mysql_close();
?>
回到首页

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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
A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version
SublimeText3 Linux latest version

Atom editor mac version download
The most popular open source editor

SublimeText3 Chinese version
Chinese version, very easy to use