PDO stands for PHP Data Objects. It is a php extension which provides an interface used to access the database. It basically provides an abstraction layer to access the database regardless of the database we are using. It supports many databases such as:
- DBLIB
- Firebird
- IBM (IBM DB2)
- INFORMIX
- MYSQL
- OCI
- ODBC
- PGSQL
- SQLITE
Example:
Connect with mysql:
$db=new PDO('mysql : host=hostname;databasename= dbname',$username,$password);
0 Comment(s)