PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  PHP JSON DB Library  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP JSON DB Library
Manage a database with data stored in JSON files
Author: By
Last change:
Date: 2 years ago
Size: 589 bytes


Class file image Download
require 'JsonDb.php';

$json=new JsonDb('erp');

// if($json->node('items')->save('monitor')){
// echo "successful";
// }

'id'=>4, 'cat'=>'pant', 'name'=>'Shirt'],
'id'=>5, 'cat'=>'pant', 'name'=>'Pant'],
'id'=>6, 'cat'=>'t-shirt', 'name'=>'Bra']
// echo 'Saved';


$data = $json->node('product:items')->where('id', '=', 4)->first();


// var_dump($json->node('products')->where('name', '=', 'Keyboard')->fetch());

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