This
Program It can be used to browse Mysql Data. You can make some modifications to make a good MySQL browser.
*/
/*? Cmd = DB? Cmd = TABLE & DB = {}? Cmd = Record & dB ={}& table = {}*/
$ Host = 'localhost ';$ User = 'test ';$ Password = '';
Combine PHP and MySQL reasonably and effectively to create a sophisticated database website. MySQL is a small, tight data server that supports standard SQL. It can be used in both UNIX and Windows environments.
PHP and MySQL are free open source
The following is a file used to back up a MySQL database through Apache + PHP in Linux.Code:
File 1. listtable. php (the file lists all tables in the database for backup)
Select the table to back up:$ Con = mysql_connect ('localhost', 'root',
When phpMyAdmin is used, an error is reported:
Client does not support Authentication Protocol requested
By server; consider upgrading MYSQL client
The official statement is:
MySQL 4.1 and up uses an authentication protocol based on a password
Set Database
The difference between the text or integer fields used in the database and the fields used to save images is that the data volume to be saved is different. The MySQL database uses special fields to store large data volumes. The data
Data Verification
Clear Spaces
The TRIM function will clear spaces at the beginning and end of the Data. Its syntax is:
Trim ($ first_name );
Processing of required fields
Some fields must be entered in your database. In this way, the
Due to the shortage of MySQL resources in China, it is neither too slow nor open to Chinese users. Therefore, in the days without MySQL, it is more difficult for us to do something that is convenient for others and improve our websites. To get rid
3. Database Design
The key is the efficiency of MySQL. Allocate the MySQL memory reasonably, especially the table Cache
Size. What happens when the system suddenly loses power? Is MySQL robust?
Table name design, with a prefix indicating the type,
1. System Architecture:
The modular concept is divided into three layers:
A. Data storage layer: MySQL is used to store all BBS data, including user information,
Article Data, user mail, user message, system data (?), Key issues:
Database
If you cannot import or export data between different databases, it is a terrible thing. Fortunately, different methods and methods can be used in various ways, I provide one of them and provide my own solutions, which are intended to inspire others,
ODBC refers to the open data connection, which is a data driver dominated by Microsoft.
Program It can be connected to other data and operated through the SQL language. Of course, PHP also provides functions for ODBC data connection,
Using PHP to
5. Layout module design
The so-called classification is mostly for the Telnet server. In cq66 mode, you can press
Classification according to your own wishes. In the end, access is directly based on the version.
For Layout
Article When stored, the
6. Bbsd and cq66 server Transformation
In bbsd, the user module should be relatively easy to modify, as long as the operation to write the. passwd file is replaced
You can operate the usermanage class member functions of the database, but you may
PHP + MySQL example
enter data in the text area and confirm
"Method = post>
$ Connect_id = mysql_connect ("localhost", "username", "password ");
If (isset ($ txt )){
$ Dbtime = date ("Y-m-d h: I: s ");
Mysql_db_query ("usernamedb",
System Configuration: win2000 English version + JDK1.4.1 + TOMCAT4.0.5 + APACHE2.043
Development cycle: the development cycle lasts for nearly 15 days.
Functions:
1. Gallery:
Submit, display, and delete images and related text by page.
2.
######################################## #######
This article is original. If it is referenced, please indicate the author's information.
Author: Cool-hearted madman
Email: edincur@yeah.net
Http://safebase.yeah.net
###################################
Note that the table structure used in this program is:
Use test;
Create table image (
Id int unsigned auto_increment primary key,
Description text,
Filename varchar (50 ),
Filesize int,
Filetype varchar (50 ),
Filedata longblob
);
*/
//? Cmd =
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service