- Parameter Description
- int $debug Whether to enable debugging, if enabled, the sql statement will be output
- int $mode 0 Return array
- 1 Return a single record
- 2 Return the number of rows
- string $table database table
- string $fields The database fields that need to be queried. It is allowed to be empty. The default is to find all
- string $sqlwhere Query conditions, empty is allowed
- string $orderby Sorting, allowed to be empty, defaults to id reverse order
Another piece of code is based on the transaction instance of my database operation class. Note that the database operation table type must be InnoDB, and other types do not support transactions.
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
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
12 Jul 2016
php pdo operates the database, phppdo database. php pdo operates the database, and the phppdo database POD extension was added in PHP5. This extension provides the PHP built-in class PDO to access the database. Different databases use the same method name to solve data problems.
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
06 Jul 2016
PHP value mysql operation class, php value mysql. PHP value mysql operation class, php value mysql ?php/** * Created by PhpStorm. * User: Administrator * Date: 2016/6/27 * Time: 18:55 */Class Mysqls{ private $table; //table private $opt; public f
12 Jul 2016
PHP value mysql operation class, php value mysql. PHP value mysql operation class, php value mysql ?php/** * Created by PhpStorm. * User: Administrator * Date: 2016/6/27 * Time: 18:55 */Class Mysqls{ private $table; //table private $opt; public f
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:
Hot Tools
Object-oriented php operation mssql class
Object-oriented php operation mssql class
Complete PHP operation MySQL database class
Complete PHP operation MySQL database class