Location: PHPKode > scripts > ODBC Conn > odbc-conn/odbc_test.php
<?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');

?>
Return current item: ODBC Conn