Login   Register  
PHP Classes
elePHPant
Icontem

File: conn_mysql.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of MarPlo  >  PDO_MySQLi class  >  conn_mysql.php  >  Download  
File: conn_mysql.php
Role: Configuration script
Content type: text/plain
Description: File with data for connecting to mysql, and include the class
Class: PDO_MySQLi class
Access MySQL using PDO or MySQLi extensions
Author: By
Last change:
Date: 1 year ago
Size: 255 bytes
 

Contents

Class file image Download
<?php
// data for connecting to mysql database
$mysql = array(
 
'host' => 'localhost',
 
'user' => 'user_name',
 
'pass' => 'password',
 
'bdname' => 'database_name'
);

include(
'class.pdo_mysqli.php');     // includes the file with PDO_MySQLi class