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

Complete example of PHP database operation Helper class, phphelper_PHP tutorial Complete example of PHP database operation Helper class, phphelper_PHP tutorial

12 Jul 2016

A complete example of PHP database operation Helper class, phphelper. A complete example of the PHP database operation Helper class, phphelper This article describes the PHP database operation Helper class through examples. Share it with everyone for your reference, the details are as follows: PHP operation database is divided into several

Complete example of MSSql operation class encapsulated by PHP, mssql example encapsulated by PHP_PHP tutorial Complete example of MSSql operation class encapsulated by PHP, mssql example encapsulated by PHP_PHP tutorial

12 Jul 2016

Complete instance of MSSql operation class encapsulated by PHP, mssql instance encapsulated by PHP. Complete example of PHP encapsulated MSSql operation class, PHP encapsulated mssql example This article describes the PHP encapsulated MSSql operation class. Share it with everyone for your reference, the details are as follows: php/*MSSql operation class

[Laravel] Laravel's basic database operation part, laravel database_PHP tutorial [Laravel] Laravel's basic database operation part, laravel database_PHP tutorial

12 Jul 2016

[Laravel] The basic database operation part of Laravel, laravel database. [Laravel] Laravel's basic database operation part, laravel database [laravel] Laravel's database configuration Find the .env file under the program directory structure and configure basic database connection information D

PHP sqlite database operation examples (create/open/insert/retrieve), sqlite examples_PHP tutorial PHP sqlite database operation examples (create/open/insert/retrieve), sqlite examples_PHP tutorial

12 Jul 2016

PHP sqlite database operation examples (create/open/insert/retrieve), sqlite examples. PHP sqlite database operation examples (create/open/insert/retrieve), sqlite examples This article describes the PHP sqlite database operation method. Share it with everyone for your reference, the details are as follows:

Why is My Entity Framework Async Operation 10x Slower Than Synchronous? Why is My Entity Framework Async Operation 10x Slower Than Synchronous?

10 Jan 2025

Entity Framework Async Operation Performance DegradationIssue:When making Entity Framework database calls asynchronously, the operation...

PHP code for operating classes based on session and cookie user login status, sessioncookie_PHP tutorial PHP code for operating classes based on session and cookie user login status, sessioncookie_PHP tutorial

12 Jul 2016

PHP operates class code based on session and cookie user login status, sessioncookie. PHP code based on session and cookie user login status operation class, sessioncookie 1. User login status operation class UserLogin phpfinal class UserLogin {public function __construct() {}pub

See all articles