Home PHP Libraries Database operation class PDO database operation class in php version (only applicable to Mysql)
PDO database operation class in php version (only applicable to Mysql)

Aphp version of PDO database operation class (only applicable to Mysql)

* Parameter Description

* int $debug Whether to enable debugging, if enabled, the sql statement will be output
* 0 Not enabled
* 1 Open
* 2 Start and terminate the program
* int $mode return type
* 0 Return multiple records
* 1 Return a single record
* 2 Return the number of rows
* string/array $table database table, two value-passing modes
* Normal mode:
* 'tb_member, tb_money'
* Array mode:
* array('tb_member', 'tb_money')
* string/array $fields Database fields to be queried, allowed to be empty, default is to search all, two value-passing modes
* Normal mode:
* 'username, password'
* Array mode:
* array('username', 'password')
* string/array $sqlwhere query conditions, empty allowed, two value-passing modes
* Normal mode:
* 'and type = 1 and username like "%os%"'
* Array mode:
* array('type = 1', 'username like "%os%"')
* string $orderby sorting, the default is id reverse order
Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Brand new PDO database operation php version (only applicable to Mysql)_PHP tutorial Brand new PDO database operation php version (only applicable to Mysql)_PHP tutorial

21 Jul 2016

Brand new PDO database operation class php version (only applicable to Mysql). Copy the code The code is as follows: /** * Author: Hu Rui * Date: 2012/07/21 * Email: hooray0905@foxmail.com */ class HRDB{ protected $pdo; protected $res; protected $config; /*Constructor

Relevant introduction to the PDO database operation class encapsulated in PHP Relevant introduction to the PDO database operation class encapsulated in PHP

12 Aug 2017

This article mainly introduces the PDO database operation class encapsulated by PHP, and analyzes related operation skills of PDO based on PDO for database addition, deletion, modification, transaction, batch addition and other related operation techniques based on specific examples. Friends in need can refer to the following

PHP uses PDO to operate the database class (applicable to Mysql) PHP uses PDO to operate the database class (applicable to Mysql)

25 Jul 2016

PHP uses PDO to operate the database class (applicable to Mysql)

mysql database operation class_PHP tutorial mysql database operation class_PHP tutorial

13 Jul 2016

mysql database operation class. mysql database operation class This section uses the php mysql database operation class function. It can delete, modify, add, backup and other operations on the database. It also supports two database connections.

The best PHP database operation class-ezSQL_PHP tutorial The best PHP database operation class-ezSQL_PHP tutorial

20 Jul 2016

The best PHP database operation class-ezSQL. ezSQL is a very easy-to-use PHP database operation class. The database operation of the famous open source blog WordPress uses the MySQL part of ezSQL. This database operation class supports almost all mainstream

mysql operation class_PHP tutorial mysql operation class_PHP tutorial

13 Jul 2016

mysql operation class. ?php /** * Database operation class * 2011/8/25 * kcj * */ class MyDB { private $db_host; //Database host name private $db_user; //Database user name private $db_pwd; //Database password p

See all articles