PHP Classes

File: test/update.php

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

Contents

Class file image Download
<?php
$db
=$db??(object)[];
try{
   
$field=["message" => "new test update message"];
   
$where= ['id', "=", "4"];
   
$res=$db->update("message")->field($field)->where($where)->result();
   
var_dump($res);
} catch (
Exception $e) {
   
var_dump($e->getMessage());
}