Login   Register  
PHP Classes
elePHPant
Icontem

DB Connect

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Cristian Rusu
Name: Cristian Rusu <e-mail contact>
Packages: 2 Browse all classes by Cristian Rusu Browse all classes by
Country: Romania Romania - PHP jobs in Romania
Age: 39
All time rank: 58811 in Romania Romania
Week rank: 1460 Down39 in Romania Romania Down


  Detailed description   Download .zip .tar.gz  
This is a simple class that can connect to a MySQL database, execute an SQL query and retrieve the result set rows and the respective metadata.

The class get function executes an SQL query and returns status of success of the executed query, the number of rows, the number of columns, the total number or result cells, and the list of names of the result columns as part of the result set array. The metadata result fields are prefixed with & to avoid confusion with the result column names.

Depending on the number of rows and columns contained in the result set, it may contain a two dimension array with all the data of the result columns and rows, or just an array with the data of one column or one row, or just one result value.

  Classes of Cristian Rusu  >  DB Connect  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: DB Connect
Base name: db_connect
Description: Query a database and fetch the result and metadata
Version: -
PHP version: -
License: Public Domain
All time users: 2016 users
All time rank: 1753
Week users: 0 users
Week rank: 2040 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (50.0%)
Sufficient (62.5%)
-
Sufficient (62.5%)
-
-
Insufficient (37.5%)
2106
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file conn_data.inc.php Conf. Used to specify the mySQL connection data
Plain text file db_conn.php Class Class file
Accessible without login Plain text file usage.php Example usage sample

Download all files: db_connect.tar.gz db_connect.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.