PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Jose Antonio Valle Minjares   PHP DAL Generator   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Configuration script
Class: PHP DAL Generator
Generate classes to access MySQL table records
Author: By
Last change: Set vars to connection parameters

Set descriptive vars to connection parameters
Date: 10 years ago
Size: 423 bytes
 

Contents

Class file image Download
<?php
 
require "autocargador.php";

 
$database_server = "";
 
$user_database = "";
 
$user_pass = "";
 
$name_database = "";
 
$database_type = "mysql";

 
$cab = new GeneradorCab($database_server, $user_database ,$user_pass,$name_database,$database_type);
 
 
$tables = array("table_1",
 
"table_2");
 
 
$cab->seleccionarTablas($tables);
 
$cab->generarObjetos();
 
$cab->generarCapaAbstraccion();
 
$cab->generarObjetoDatabase();