File: index.php

Recommend this page to a friend!
  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: 12 years ago
Size: 907 bytes


Class file image Download
include 'config.php';

/* Conexao com POST GREE
$PostGree = Conexao::UsarBanco('pgsql',$pgserverhost,$pgserveruser,$pgserverpass,$pgserverdatabase,$pgserverport) ;
$PostGree->select("select * from sua tabela");

/* Conexao com Mysql
$Mysql = Conexao::UsarBanco('mysql',$mysqldbhost,$mysqluser,$mysqlpass,$mysqldatabase,$mysqlporta);
$Mysql->select("Show tables");

/* Conexao Interbase
$Interbase = Conexao::UsarBanco('ibase',$interbasebdhost,$interbaseuser,$interbasepass,$interbasedatabase,0);
$Interbase->select("select * from DIARIO");

/* Conexao SQL SERVER
$Mssql = Conexao::UsarBanco('mssql',$sqlserverhost,$sqlserveruser,$sqlserverpass,$sqlserverdatabase,0);
$Mssql->select("Select * from Sistema");


For more information send a message to info at phpclasses dot org.