Ask the master, about the PHP connection database problem
Excuse me master, PHP database connection There are several ways? What is the best way to connect a database? MySQL mysqli PDO ADODB These ways now popular which way, the other ADODB this has no relevant manuals, how to use ADODB?
------to solve the idea----------------------
Before the PHP5 version, the general is to use the PHP MySQL function to drive the MySQL database, such as mysql_query () function, belongs to process 3, after the PHP5 version, added mysqli function function, in a sense, It is an enhanced version of MySQL system functions, more stable and more efficient and more secure, and mysql_query () corresponding to the Mysqli_query (), belongs to the object-oriented, the operation of the object to drive the MySQL database.
ADODB is a PHP database abstraction library that can support access,sqlserver,oracle and so on.
PDO is a solution to the problem of not unifying database connections.
Reference http://www.iamle.com/archives/1563.html
------to solve the idea----------------------
At the moment, PDO is the most tangible and official recommendation.
------to solve the idea----------------------
Baidu a bit so many tutorials.
http://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=1&tn=monline_5_dg&wd=php%20pdo& rsv_pq=ea040e4c0001cae7&rsv_t=2d90qkb4fzmuhnvcxdzz5fmdk%2ffib1q7reavhsvu8uewzrlpxrpddpqi3orwyxcbcfhj& rsv_enter=1&rsv_sug3=4&rsv_sug1=3&rsv_sug2=0&inputt=4590&rsv_sug4=5368
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.