| 
<?phpinclude_once ("_autoload.php");
 ##################################
 /*
 executeSql are simple execute sql and retrived a result
 for query type :
 
 Select return associative array
 
 Insert return a insert ID or null if table not are autoincrement value
 
 Update and Delete return afect rows and need a where clause for runing
 
 */
 $teste = new ooeLite;
 try {
 
 //teste error
 
 // $SQL="SELECT * FROM tablenotexist";
 
 $SQL="SELECT * FROM acs_usuarios";
 var_export($teste->executeSql($SQL));
 } catch (Exception $e) {
 echo $SQL . " => mensagem => " . $e->getMessage()." => Erro => ".$e->getCode;
 }
 
 ?>
 |