| 
<?php
 include("database.class.php");
 
 // Connecting to database
 $db=new database("mysql","localhost","addresses","username","password");
 
 // Switching to debug mode
 $db->debug_mode();
 
 // Making query
 $db->query("SELECT * FROM addresses");
 
 // Counting results and showing it
 echo $db->count_rows();
 
 // Printing results
 while($my_row=$db->get_row()){
 echo $my_row['name'];
 }
 
 /*********************
 *
 *   Connecting ODBC database
 *
 *********************/
 
 // Connecting to odbc database
 $db=new database("odbc","","","","",false,"odbc-name-of-db");
 
 ?>
 |