PHP Classes

Class Connect Database: Connect to a MySQL database

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,361 All time: 2,846 This week: 179Up
Version License PHP version Categories
mantrv-mysql 1.0The PHP License5PHP 5, Databases


This is a very simple class to connect to a MySQL database.

It can connect to a given MySQL database host and select a given database.

The class can also display an error message and exit if the class script is accessed directly.

Picture of Mohammad al-herbi
Name: Mohammad al-herbi <contact>
Classes: 1 package by
Country: Saudi Arabia Saudi Arabia
Age: 30
All time rank: 19537 in Saudi Arabia Saudi Arabia
Week rank: 578 Up5 in Saudi Arabia Saudi Arabia Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file config.php Conf. config
Accessible without login Plain text file config2.php Conf. config2
Accessible without login Plain text file index.php Example index
Accessible without login Image file logMysql Photo log
Plain text file mysql_class.php Class mysql_class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,846
This week:179Up
User Comments (1)
10 years ago (Abo Sami)