PHP Classes

File: example

Recommend this page to a friend!
  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: 14 years ago
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');
?>