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...
Statement of this Website
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
PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.
The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.
PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.
PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.
What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.
Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.
MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.