Author: heiyeluren Http://blog.csdn.net/heiyeshuwu>Time: 2006-10-29Keywords: PHP PHP5 PDO database abstract class
PDO (PHP Data Object) is a new feature of PHP 5. When PHP 6 is ready, PHP 6 uses PDO to process databases by default, by default, all
I do not know how to deal with MySQL today, but I do not know how to obtain the inserted id after inserting the record. After reading the document, I found the select last_insert_id () and executed this query after inserting it, you can get the auto-
I do not know how to deal with MySQL today, but I do not know how to obtain the inserted id after inserting the record. After reading the document, I found the select last_insert_id () and executed this query after inserting it, you can get the auto-
What is PDO in PHP?
The POD (PHP Data Object) extension is added to PHP5. by default, PDO is identified in PHP6 to connect to the database. all non-PDO extensions will be removed from the extension in PHP6. This extension provides PHP built-in PDO
Php pdo class tutorial. The POD extension is added to PHP5, which provides the PHP built-in PDO class to access the database. different databases use the same method name to solve the problem of inconsistent database connections. PDO
The POD
Php pdo class tutorial. Read the php pdo class tutorial. the POD extension is added to PHP5. This extension provides the PHP built-in class PDO to access the database, different databases use the same method name to solve the problem of inconsistent
What is PDO?
The POD (PHP Data Object) extension is added in PHP5, and PHP6 connects the database with PDO, and all non-PDO extensions will be removed from the extension in PHP6. The extension provides PHP built-in class PDO to access the database,
I. PDO
Represents a connection between a PHP and a database.
Method: pDO-constructor to build a new PDO object
Begintransaction-start transaction
Commit-Submit a transaction
Errorcode-returns an error code from the database, if any
Errorinfo-returns
From: PhP PDO Study Notes
Other articles: Connecting PHP to DB2 and cloudscape through PDO
Let's get to know about the PDO extension first:■ What is PDO? The pod (PHP Data Object) extension is added to PhP5. By default, PDO is identified in PhP6 to
PDO (PHPDataObject) is new to PHP5. in PHP6, only PDO is used to process databases by default. we only need to keep pace with the times to learn about PDO. This is only an entry-level basic tutorial. PDO is a major new feature of PHP 5, because php4/
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.