PHP Classes

File: examples/db_config.php

Recommend this page to a friend!
  Packages of Mohamed Elbahja   MySQLi Manager   examples/db_config.php   Download  
File: examples/db_config.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MySQLi Manager
Execute MySQL queries from parameters using MySQLi
Author: By
Last change: Update db_config.php
Date: 10 years ago
Size: 324 bytes
 

Contents

Class file image Download
<?php 

/**
 * database config 
 */

define('DB_HOST', 'localhost'); //host
define('DB_USER', 'root'); // db username
define('DB_PASS', ''); // db password 
define('DB_NAME', 'test'); // db name

require '../Mysqli_Manager.php';

try {

    $db = new Mysqli_Manager();

} catch (Exception $err) {

    exit($err->getMessage());
}