<?php 
include_once ("_autoload.php"); 
################################## 
$teste = new ooeLite; 
 
try { 
 
# Using Statment 
$SQL='SELECT * FROM acs_usuarios WHERE NM_USUARIO=?'; 
$teste->prepareSQL($SQL); 
 
 
# return values 
 
echo 'Statment are simple array value <br/>'; 
print_r($teste->execStatment(array('Marcelo Costa'))); // corret method 
 
 
echo '<br/>Statment are associative array<br/>';  
print_r($teste->execStatment(array('name'=>'Marcelo Costa'))); // working for translade array values  
 
 
echo '<br/>Statment are values delimiter for "," <br/>';  
print_r($teste->execStatment('Marcelo Costa')); // working for translade with explode 
 
 
} catch (Exception $e) { 
echo $SQL . " => mensagem => " . $e->getMessage()." => Erro => ".$e->getCode; 
} 
 
?>
 
 |