PHP Classes

mysql_connection: Wrapper for several MySQL connection information

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2002-08-09 (13 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,262 All time: 2,892 This week: 985Up
Version Licenses Categories  
mysql 1.0Freely DistributableDatabases
Description Author  

Current Version: 1.1.2

This class is in charge of establishing a connection to the MySQL server.
This class is a wrapper of the basic functions like open, close, send sql,
send command. It allows personnalized error trapping and can also trap errors
for you but in a very gruesome way stopping all execution.

It also offers several usefull functions like:
- sql_insert_id() which returns the last inserted id by this connection
- sql_data_format() which will transform any ' into a \' format so the sql
string will not suffer brutal stops because of a misplaced '

The basic information you need to use this class is what follows:
Step 1: Create the object
needed: hostname, username, password and database used by this connection
Step 2: Open the connection
call: open()
Step 3: Send any sql request or sql command
call: send_result_sql() or send_command_sql()
Step 4: Close the connection
call: close()

For more information on: Usage, Technical data, Version History
Lookup the files for this class on the web site

Picture of Mathieu Dumoulin
Name: Mathieu Dumoulin <contact>
Classes: 1 package by
Country: Canada Canada
Age: ???
All time rank: 192446 in Canada Canada
Week rank: 1653 Up31 in Canada Canada Up

  Files folder image Files  
File Role Description
Plain text file class.mysql.connection.php Class Contains mysql_connection class
Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,262All time:2,892
 This week:0This week:985Up