PHP Classes

PHP MySQL DBI: Access MySQL databases using the MySQLi extension

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-04-20 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 111 All time: 9,485 This week: 129Up
Version License PHP version Categories
dbi-mysql 1.0Custom (specified...5PHP 5, Databases
Description Author

This class can access MySQL databases using the MySQLi extension.

It provides static functions and variables to connect to a MySQL server using the PHP MySQLi extension.

The database connection parameters can be defined using a static class array variable.

The class can also execute SQL queries and retrieve query results that it returns as arrays.

Picture of Alex McArrow
  Performance   Level  
Name: Alex McArrow <contact>
Classes: 2 packages by
Country: Russian Federation Russian Federation
Age: 39
All time rank: 4234115 in Russian Federation Russian Federation
Week rank: 287 Up14 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details

DB - MySQL(i) class

Init

$DSN = array (
    'host'=>'localhost',
	'base'=>'dbname',
	'user'=>'user',
	'pass'=>'password',
	'char'=>'utf-8'
);
new \DBI\MySQL ($DSN);

Use

\DBI\MySQL::query ("SELECT 1;");
  Files folder image Files  
File Role Description
Files folder imageDBI (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  DBI  
File Role Description
  Plain text file MySQL.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:111
This week:0
All time:9,485
This week:129Up