Login   Register  
PHP Classes
elePHPant
Icontem

File: teste.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ivo Augusto Nascimento  >  pl2method  >  teste.php  >  Download  
File: teste.php
Role: Example script
Content type: text/plain
Description: teste.php
Class: pl2method
Execute PgSQL stored procedures as class functions
Author: By
Last change:
Date: 5 years ago
Size: 658 bytes
 

Contents

Class file image Download
<?
error_reporting
(E_ALL);
include_once 
'ipgpl.class.php';
$p = new ipg(array('DEBUG'=>true'dsn'=>"host=localhost;dbname=teste"), "postgres""postgres");//;user=postgres;password=postgres"));
//$p->Teste->Teste('Ivo Nascimento','10/10/2008','2008-10-10', '10:00','22:19:35.488543-02', 10, 10.10);
//print_r($p->teste->d3('10:00')->fetch());
//print_r($p->outroteste->soma2(10,20)->fetch(PDO::FETCH_NUM));
//$d = $p->Teste->ave(10.10);
//print_r($d);
$d $p->Teste->ave('Ivo Nascimento')->fetch();
//print_r($p->Teste->ave(10.10)->fetch(PDO::FETCH_ASSOC));
//print_r($p->outroteste->soma2(10,20)->fetch());
//print_r($p->outroteste->soma2(ipg::_INFO));
?>