PHP Classes

File: test/query.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   Wepesi PHP ORM Framework   test/query.php   Download  
File: test/query.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: 214 bytes
 

Contents

Class file image Download
<?php
try{
   
$db=$db??[];
   
$sql="select * from user JOIN message On user.id=message.userid";
   
$res=$db->query($sql)->result();
   
var_dump($res);
} catch (
Exception $e) {
   
var_dump($e->getMessage());
}