1. How to configure PhpMyAdmin2.9
The profile of many tutorials on the network is for the phpMyAdmin version, at the beginning, even 2.9 configuration files do not know where to put?
The profile relative address is:
config.sample.inc.php(Not this
The function of this piece of code is:
Connect to a MySQL server with a URL address of localhost and port 3306. The MySQL server account number is "root" and the password is "9999". There is a database on the MySQL server OK, there is a table ABC
DBI: an APIthat connects all databases.DBD: is the DBI drive for different databases.Dbd::mysqlDBD::P GDbd::sqliteIf not , install with cpan .######################################################################DBI Interface:Customary
PHP instance program: three methods for directly reading database information. The function of this code is to connect to a mysql server whose url address is localhost and Port is 3306. The account of the mysql server is root and the password is 9999
Three methods for php to read mysql database: bitsCN.com
$ Dbh = @ mysql_connect ("localhost: 3306", "root", "000000 ");
/* Define the variable dbh. the mysql_connect () function means to connect to the mysql database, and "@" means to block the
Three methods for directly reading database information: three methods for directly reading database information. the function of this code is to connect to a mysql server with the url address localhost and Port 3306. The mysql server account is ">
This section describes how to pre-compile php5.1. * And php5.2. * in the database.
Code There are differences during execution. Advantages of pre-Compilation
1. Use placeholders to avoid entering data in SQL words. Automatically handle escape of
Using DBI to connect to a Microsoft SQL server is a relatively simple task. Rather than go with a simple example, I have chosen to demonstrate not just connectivity, but also error checking.As always, when you want to use a module, you must declare
$ DBH = @ mysql_connect ("localhost: 3306", "root", "9999 ");
/* Define the variable DBH. The mysql_connect () function means to connect to the MySQL database, and "@" means to block the error */
If (! $ DBH) {die ("error ");}
/* The die () function
Source: http://www.phpchina.cn/bbs/viewthread.php? Tid = 1574 & fpage = 1 & Highlight = % 2 bmzt
PHP 5.1 comes with a new database connection layer, namely, PHP Data Objects (PDO ). Unlike the database abstraction layers such as ADODB and pear dB,
$ Dbh = @ mysql_connect ("localhost: 3306", "root", "9999 ");/* Define the variable dbh. The mysql_connect () function means to connect to the mysql database, and "@" means to block the error */If (! $ Dbh) {die ("error ");}/* The die () function
Copy codeThe Code is as follows:$ Dbh = @ mysql_connect ("localhost: 3306", "root", "000000 ");/* Define the variable dbh. The mysql_connect () function means to connect to the mysql database, and "@" means to block the error */If (! $ Dbh) {die
Kindles blog
Many people say that asp php jsp injection is most directly related to databases! However, those scripts are only a helper.For example, ASP/aspx jsp has no restrictions! However, PHP will filter it out, but if it is not mysql postgresql
Many people say that asp php jsp injection is most directly related to databases! However, those scripts are only a helper.
For example, ASP/aspx JSP has no restrictions! However, PHP will filter the 'as \', but if it is not mysql PostgreSQL SQLite,
1. How to configure PhpMyAdmin2.9
The configuration files of many tutorials on the network are for the PhpMyAdmin base version. At first, I didn't even know where to put the 2.9 configuration file?
The relative address of the configuration file
Mysql can read databases in three ways. For more information, see.
Mysql can read databases in three ways. For more information, see.
The Code is as follows:
$ Dbh = @ mysql_connect ("localhost: 3306", "root", "000000 ");
/* Define the variable
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.