Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
chamamme authored Jun 26, 2018
1 parent 1ca264a commit 62df569
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<?php
require "bootstrap.php";

//$result = $tablet->table("users")
// ->select(["name"])
// ->where(["name = 'test'"])
// ->get(2,4);
$result = $tablet->table("users")
->update(["name"=>"Test"])
->where(["name = 'hello'"])
->go();

var_dump ($result);
require "vendor/autoload.php";

use Orcons\Layers\Tablet;

$config = require "config.php";

$db = new Tablet($config);

#select query
$db->table('users')
->select(['name','gender','age'])
->get()

#update statement
$db->table('users')
->update(['name'=>'Chamamme'])
->where(["id = 5","gender ='male'"])
->go()

0 comments on commit 62df569

Please sign in to comment.