Login   Register  
PHP Classes
elePHPant
Icontem

File: statment_sql.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marcelo Costa  >  ooeLite  >  statment_sql.php  >  Download  
File: statment_sql.php
Role: Example script
Content type: text/plain
Description: statement sql exemple
Class: ooeLite
Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 747 bytes
 

Contents

Class file image Download
<?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;
}

?>