PHP Classes

File: test/select.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   Wepesi PHP ORM Framework   test/select.php   Download  
File: test/select.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Wepesi PHP ORM Framework
Execute common SQL queries using object functions
Author: By
Last change:
Date: 1 year ago
Size: 212 bytes
 

Contents

Class file image Download
<?php
try{
   
$where=[];
// $where= ['id', "=", 1];
   
$db=$db??(object)[];
   
$res=$db->get("users")->where($where)->result();
   
var_dump($res);
} catch (
Exception $e) {
   
var_dump($e->getMessage());
}