Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marcus Brasizza  >  Database Connect  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: Database Connect
Execute common SQL queries for different databases
Author: By
Last change:
Date: 2008-04-16 07:20
Size: 907 bytes
 

Contents

Class file image Download
<?
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);
*/


?>