<?
include 'config.php';
include 'DatabaseClass.php';
/* Conexao com POST GREE
$PostGree = Conexao::UsarBanco('pgsql',$pgserverhost,$pgserveruser,$pgserverpass,$pgserverdatabase,$pgserverport) ;
$PostGree->select("select * from sua tabela");
$PostGree->mostradebug(1);
*/
/* Conexao com Mysql
$Mysql = Conexao::UsarBanco('mysql',$mysqldbhost,$mysqluser,$mysqlpass,$mysqldatabase,$mysqlporta);
$Mysql->select("Show tables");
$Mysql->mostradebug(1);
*/
/* Conexao Interbase
$Interbase = Conexao::UsarBanco('ibase',$interbasebdhost,$interbaseuser,$interbasepass,$interbasedatabase,0);
$Interbase->select("select * from DIARIO");
$Interbase->mostradebug(1);
*/
/* Conexao SQL SERVER
$Mssql = Conexao::UsarBanco('mssql',$sqlserverhost,$sqlserveruser,$sqlserverpass,$sqlserverdatabase,0);
$Mssql->select("Select * from Sistema");
$Mssql->mostradebug(1);
*/
?>
|