<? 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)); ?>
|