Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2011-12-28 (4 years ago) ![]() | Not enough user ratings | Total: 682 | All time: 4,564 This week: 923![]() |
Version | License | PHP version | Categories | |||
mysql-lib 1.1 | GNU General Publi... | 5 | Databases |
Description | Author | |||||||||||||
This package can connect and run MySQL queries from parameter lists. |
|
Change the constant values in configuration file. Usegae: SELECT. $argSelectFlds = array('column1','column2'); $argOrderBy = ' order by column name'; $argSearchWhere = 'And where clause'; $varWhereClause = ' 1 '.$argSearchWhere; $argTables = tableName; $arrDataList = $objDBConnect->select($argTables, $argSelectFlds, $varWhereClause, $argOrderBy, $argLimit); UPDATE: $arrUpdate['column1'] = 'value1'; $arrUpdate['column2'] = 'value2'; $varWhere = ' AND column1= "----'; $affectedRows = $objDBConnect->update(Table Name, $arrUpdate, $varWhere); INSERT: $arrUpdate['column1'] = 'value1'; $arrUpdate['column2'] = 'value2'; $affectedRows = $objDBConnect->insert(Table Name, $arrUpdate); Get Num Rows return $objDBConnect->getNumRows(tableName, 'unique id of table', Condition); |
![]() |
File | Role | Description |
---|---|---|
![]() |
Class | Database Class |
![]() |
Class | class_db_connection |
![]() |
Class | DB Interface |
![]() |
Conf. | configure.inc |
![]() |
Example | connectdb.inc |
![]() |
Doc. | Readme |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.