Login   Register  
PHP Classes
elePHPant
Icontem

File: SelectWhere.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fernando Alls  >  Easy DB Work  >  SelectWhere.php  >  Download  
File: SelectWhere.php
Role: Example script
Content type: text/plain
Description: Select table from database
Class: Easy DB Work
Execute MySQL queries using parameter lists
Author: By
Last change: removed path
Date: 2012-06-18 05:17
Size: 486 bytes
 

Contents

Class file image Download
<?php
require_once('connection/Config.class.php');
require_once(
'edwCore.class.php');

$db = new edwCore();
  
 
$dataArray = array(
  
   
'name'  => 'luiz',
   
'email' => 'fernandoguaiba@gmail.com'

 
);
 
 
 
$db->selectWhere('contact'$dataArray);
 
  while(
$data mysql_fetch_object($db->Command))
   {
     echo 
"Name: "  $data->name  "<br>";
     echo 
"Email: " $data->email "<br>";
     echo 
"Fone: "  $data->fone  "<br><hr><br>";
   }

 
 
?>