PHP Classes

File: test/delete.php

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Wepesi PHP ORM Framework   test/delete.php   Download  
File: test/delete.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: 4 years ago
Size: 273 bytes
 

Contents

Class file image Download
<?php
$db=$db??[];
$where= ['id', "=", "3"];
try {
    $res=$db->delete("message")->where($where);
        if($db->error()){
            throw new \Exception($db->error());
        }
    var_dump($res->result());
} catch (Exception $e) {
    var_dump($e->getMessage());
}