Php_mysql class
2016-08-23
0 0 0
no vote
Other
Earn points
Application background
This kind of method are as follows: the detailed code see resources/ / construction methodFunction __construct public ();/ / singleton patternStatic function getIns public ()/ / connectFunction connect public ($h, $u, $p)Switch / / databaseFunction select_db public ($db)/ / set the character setFunction setChar public ($char)Responsible for sending / SQL queryFunction query public ($sql)/ / responsible for obtaining the rows and columns of the selectFunction getAll public ($sql)/ / get a row of query resultsFunction getRow public ($sql)Get / a single valueFunction getOne public ($sql)The function returns the number of rows affected /Function affected_rows public ()Since the new growth / / return value of the auto_increment columnFunction insert_id public ()*Insert into TBNAME (username, passwd, email) values ('')All the keys with the 'pick up'.Implode (',', array_keys ($arr));Implode ('', '', array_values ($arr));* /Public function autoExecutephp
phpmysql
Related Source Codes
CRMEB open source mall system (including h5 offici
0
0
no vote
PHP source code of CRMEB multi port and multi lang
0
0
no vote
ALLLIGHT music player, adaptive to all mobile phon
0
0
no vote
DSMALL multi-merchant mall system
0
0
no vote
WeChat H5 payment source code
0
0
no vote
No comment