Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Felipe Nascimento de Moura  >  PgFieldNameFixer  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: usage exapmle
Class: PgFieldNameFixer
Fix names of PostgreSQL table columns
Author: By
Last change:
Date: 2009-07-13 14:18
Size: 490 bytes
 

Contents

Class file image Download
<?php
    
include('PgFieldNameFixer.php');
    
    
$pgFNF= new PgFieldNameFixer();    //    instantiate the object
    // setting the host of dataBase:
    // METHOD host
    //         PARAMS: dataBaseName, dataBaseAddress, dataBasePort
    
$pgFNF->host('listagens''localhost''5432');
    
// setting the admin user of dataBase:
    // METHOD user
    //         PARAMS: userName, userPassWord
    
$pgFNF->user('root''1234');
    
// fixing the fieldNames of the table named "table_example"
    
$pgFNF->fix('table_example');
?>