Login   Register  
PHP Classes
elePHPant
Icontem

File: configuration.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of John Paul de Guzman  >  Class Generator  >  configuration.php  >  Download  
File: configuration.php
Role: Application script
Content type: text/plain
Description: Database Configuration
Class: Class Generator
Generate classes to access MySQL database tables
Author: By
Last change: Modifications by Marley Adriano de Souza Silva <marleyas@gmail.com>
Added dynamic configuration for the database. You don't have to modify the configuration to change the database to be generated. Modifications includes switching from one database to another.
Date: 8 years ago
Size: 392 bytes
 

Contents

Class file image Download
<?php
// include files
include 'core_classes/core.dbfunctions.php';
include 
'core_classes/DGEN_Generator.php';

// default database
if($_POST['db_name']){
    
$dbName $_POST['db_name'];
}else{
    
$dbName 'mysql';
}

// Database Configuration
$dbConn = new DbConnection();
$dbConn->useManualDefinition("localhost"$dbName"root""");
$dbConn->doConnection();



?>