PHP Classes

File: odbc_test.php

Recommend this page to a friend!
  Classes of José Augusto Ferreira Franco   ODBC Conn   odbc_test.php   Download  
File: odbc_test.php
Role: Example script
Content type: text/plain
Description: some short tests using this class
Class: ODBC Conn
ODBC database access wrapper
Author: By
Last change:
Date: 18 years ago
Size: 666 bytes
 

Contents

Class file image Download
<?php


require "odbc_class.php";

/*****************************************************************************
 *
 * There some tests with class to show how it works
 *
 *****************************************************************************/
$date = date('d-m-Y');

$db = new odbc_conn();

#$db->Update(array("nome" => "xxx","morada" => "Manu"),0);

$db->Insert(array("nome" => "Bernardo","morada" => "Garajau", "data"=> "{$date }" ));

$sql = "SELECT * FROM clientes";

#$data = $db->Results($sql);
print $db->TableResults($sql);


#print_r($db->db_info());

#$db->Delete("nome='Bernardo'")

#$db->DropTable('clientes');

?>