File: demo/update.php

Recommend this page to a friend!
  Classes of Arash Soleimani  >  LMSQL  >  demo/update.php  >  Download  
File: demo/update.php
Role: Example script
Content type: text/plain
Description: update example
Class: LMSQL
Connect and perform MySQL database queries
Author: By
Last change: update example
Date: 2 months ago
Size: 250 bytes
 

Contents

Class file image Download
<?php
require_once 'mysql.class.php';

$mysql = new LMSQL('localhost', 'USERNAME', 'PASSWORD', 'DB-NAME', true);

$mysql->update([
   
'table'=>'tableName',
   
'values'=>['title'=>'title updated', 'desc'=>'something'],
   
'where'=>['id'=>3]
]);

?>


For more information send a message to info at phpclasses dot org.