PHP Classes

MySQL Connection Exceptions: Connect to MySQL and throw exceptions on error

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 233 All time: 8,096 This week: 190Up
Version License PHP version Categories
mysql-exceptions 1.0BSD License5PHP 5, Databases


This is is a very simple class that can connect to MySQL and throw exceptions on error.

It can connect to a MySQL database server given the database host address, user name and password.

The class throws an exception if the connection fails.

Picture of philip njuguna
Name: philip njuguna <contact>
Classes: 3 packages by
Country: Kenya Kenya
Age: ???
All time rank: 28275 in Kenya Kenya
Week rank: 362 Up2 in Kenya Kenya Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file sql.php Class conn

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,096
This week:190Up