Tutorial by Examples

PDO is a universal database connection command in PHP, it support 12 different database type e.g MySQL, MongoDB, NoSQL. A big bonus about PDO is that it calculate your code to support the database type, so you don't need to make any chance when moving over to another database system. Summary PDO...
PDO::setAttribute sets an attribute on the database handle. Desctiption of setAttribute is: public bool PDO::setAttribute ( int $attribute , mixed $value ) PDO::ATTR_ERRMODE: This attribute is used for error reporting. It can have one of the following values. PDO::ERRMODE_SILENT: If the ATTR...

Page 1 of 1