PHP Classes

File: SelectWhere.php

Recommend this page to a friend!
  Packages 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: 14 years ago
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>";
   }

 
 
?>