PHP Classes

File: db_interbase.php

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.   phpreports   db_interbase.php   Download  
File: db_interbase.php
Role: Auxiliary script
Content type: text/plain
Description: Interbase database interface
Class: phpreports
Report Generator
Author: By
Last change:
Date: 21 years ago
Size: 893 bytes
 

Contents

Class file image Download
<?php
   
/*
        Special thanks to Andre "Biriba" (andre@appsistemas.com.br) for
        his patience testing this module. Thanks man! :-)
    */
   
function db_connect($oArray) {
        return
ibase_connect($oArray[2], $oArray[0], $oArray[1]);
    }

    function
db_select_db($sDatabase) {
        return
null;
    }

    function
db_query($oCon,$sSQL) {
       
$oStmt = ibase_query($oCon,$sSQL);
        return
$oStmt;
    }

    function
db_colnum($oStmt) {
        return
ibase_num_fields($oStmt);
    }

    function
db_columnName($oStmt,$iPos) {
       
$aFieldInfo = ibase_field_info($oStmt,$iPos);
        return
$aFieldInfo["name"];
    }
   
    function
db_columnType($oStmt,$iPos) {
       
$aFieldInfo = ibase_field_info($oStmt,$iPos);
        return
$aFieldInfo["type"];
    }

    function
db_fetch($oStmt) {
        return
ibase_fetch_row($oStmt);
    }

    function
db_free($oStmt) {
        return
ibase_free_result($oStmt);
    }

    function
db_disconnect($oCon) {
        return
ibase_close($oCon);
    }
?>