PHP code example of xeki-tech / db

1. Go to this page and download the library: Download xeki-tech/db library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xeki-tech / db example snippets


$res = $sql->query("SELECT * FROM xeki_table where active='on' order by order_list asc");
foreach($res as $item){
    d($item); // print on xeki
}

$data = array(
    "email" => $user['new_email'],
);
$sql->update("user", $data, "field='{$value}'");

$data = array(
    "email" => $user['new_email'],
);
$sql->insert("user", $data);



$data_array=[];
$data_array['title']="":
$sql->update("tableName", $data_array, "sku='cd22'");

$sql->delete($table = null, $conditions = 'FALSE')