Read about how to create photo gallery in php and mysql, The latest news, videos, and discussion topics about how to create photo gallery in php and mysql from alibabacloud.com
Actually prepared to learn the PHP language has been planned for several years, but are busy with some things do not meditate, given the needs of the project, must learn some technology, so ready to the front-end, front-end framework and PHP this backend application gradually learn. According to the previous study progress and habits, or directly to do the project more directly, because the old Chiang himse
As a PHP developer, I was sometimes asked to make a shoutbox. If the same thing happens to you, here's a quick guide. Obviously, you want to add your own CSS to it above, but here's the basic idea.We need a MySQL database table and three PHP files.First, we need a file to save the database information---file #1: mysql.inc.php---
# Simply Shouting-ashoutboxexa
Table One: admin
Field: ID (int11) name (VARCHVR) password (VARCHVR)
Table II: LO
Field: ID (int11) Username (VARCHVR) Sex (VARCHVR) QQ (VARCHVR) Email (VARCHVR) info (text) IP (VARCHVR) submit_time (datetime)
1. conn.php (connect database file)
Copy the Code code as follows:
mysql_connect ("localhost", "root", "");//Connect to Databasemysql_select_db ("Lyb");//Select Database?>
2. header.php (Common header file)
Copy the Code code as follows:
Copy the Code code as follows:
$counte
databasesCreating a DatabaseThe CREATE DATABASE syntax is used for creating a data base.Grammar:
CREATE DATABASE db_name
PHP MySQL function library, the mysql_query () function is used to send and execute SQL statements to MySQL.Create a database named TestDB:
TipsCreating a database requir
/*** Created by Phpstorm.* User:administrator* Date:2015/3/31* time:14:40 */Header("Content-type:text/html;charset=utf8");//declaring the encoding format$conn=mysql_connect("localhost","Root","AAAAAA") or die("Database connection Error".Mysql_errno());//ConnectionSQL//$createTable =mysql_query ("CREATE Database Phptest", $conn) or Die ("CREATE TABLE Error:". Mysql_errno ());//
simply edit a file named index.html and put it in the directory to test. Test PHP support
Open the editor, create a PHP file, and typeCode:
Save the file to the E:/html folder and name it phpinfo. php. Enter http: // 127.0.0.1/phpinfo. php in the address bar of the bro
PHP page has a browse count of 200 concurrent per second, resulting in the insert to the MySQL caused a lot of pressure
LNMP environment, the other page content has done a cache, not much load, is the number of browsing statistics function, to the MySQL bring great pressure, I ask you what solution?
How to say do not use My
How to create a database from PHP, this article will detail the operation of PHP database creation.
Example (Mysqli-object-oriented)
Create a database
$sql = "CREATE Database MyDB", if ($conn->query ($sql) = = = TRUE) { echo "database creation succeeded";} else { ech
One day, I tried to search the calculator and found that it was JavaScript, and I had to click it one by one, but it could not be recorded. it was easy to make mistakes when I entered the formula, so I thought about how to make it easy to use. I can enter it directly on the keyboard. After searching for a long time, I found that there was very little information on the Internet, so I wanted to write it myself. I slowly found that there were many problems. I didn't know how to use algorithms, but
Describes how to use phpmyadmin to create a MYSQL database. First, create a database named webjxcom. Create a data table named Article in this database. Next we will enter a key point, that is, to create each field under the table Article.
First,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.