PHP code example of gugusd999 / db_query_helper
1. Go to this page and download the library: Download gugusd999/db_query_helper 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/ */
gugusd999 / db_query_helper example snippets
Gugusd999\DbQueryHelper;
$data = [
[
"name" => "jhon",
"gender" => "man",
"old" => 37
]
];
$insertQuery = ArrayToQuery::insert($data, 'my_table', ['id']);
$updateQuery = ArrayToQuery::update($data, 'my_table', 'id');