The dbconfig class is responsible for configuring database access information, including: server address, port, database instance name, user name, user password, character set, etc.
The dbtemplate class collects access operations to the database, mainly including the following operations:
1. queryrows: returns multiple rows of records
2. queryrow: returns a single record
3. queryforint: Query a single field and return an integer
4. queryforfloat: Query a single field and return a floating point number (float)
5. queryfordouble: Query a single field and return a floating point number (double)
6. queryforobject: Query a single field and return the object. The actual type is determined by the database.
7. update: execute an update statement. insert / upadate / delete
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
13Jul2016
PHP implements PDO's mysql database operation class, phppdomysql database. PHP implements the mysql database operation class of PDO, phppdomysql database This article describes the example of PHP implementing the mysql database operation class of PDO. Share it with everyone for your reference. The specific analysis is as follows: d
13Jul2016
PHP implements mysql database operation class sharing. Copy the code The code is as follows: ?php /* Database operation class */ class Mysql{ private $LocalHost = 'localhost'; private $LoaclUser = 'root'; private $LocalPass = '123456'; private $LocalBa
25Jul2016
Object-oriented mysql database operation php class
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