PHP Classes

File: interbase.php

Recommend this page to a friend!
  Packages of Eduardo Seijo   My Db   interbase.php   Download  
File: interbase.php
Role: Auxiliary script
Content type: text/plain
Description: interbase interface
Class: My Db
Database wrapper for MySQL, Interbase and MSSQL
Author: By
Last change:
Date: 22 years ago
Size: 1,392 bytes
 

 

Contents

Class file image Download
<?php
/* interface with interbase server
 */
/********************************************************************/
function connect(&$server,&$user,&$password){
    return ibase_connect($server,$user,$password);
}
/********************************************************************/
function select_db(&$db, &$conn){
// no necesita seleccionar la base de datos, va incluido en $server (host/ruta/archivo.gdb)
}
/********************************************************************/
function query(&$query, &$conn){
     $result = ibase_query($query, $conn) or die("La consulta fall&oacute;: " . ibase_errmsg());
     return $result;
}
/********************************************************************/
function load_data(&$result){
        while ($fila = ibase_fetch_object($result)) {
            $_array[] = $fila;
        }
    }
    else{
        $_array = false;
    }
    return $_array;
}
/********************************************************************/
function insert_id(&$conn){
// no existe equivalente en interbase
}
/********************************************************************/
function free_result(&$result){
    ibase_free_result($result);
}
/********************************************************************/
function close(&$conn){
    ibase_close($conn);
}
/********************************************************************/
?>