PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Alex McArrow   PHP MySQL DBI   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP MySQL DBI
Access MySQL databases using the MySQLi extension
Author: By
Last change:
Date: 1 year ago
Size: 274 bytes
 

Contents

Class file image Download

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;");