PHP code example of codesvault / howdy-qb

1. Go to this page and download the library: Download codesvault/howdy-qb 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/ */

    

codesvault / howdy-qb example snippets


$db = DB::setConnection(
	[
		"dbhost"        => 'mysql_host',
		"dbname"        => 'database_name',
		"dbuser"        => 'database_user',
		"dbpassword"    => 'database_password',
		"prefix"        => 'database_table_prefix'
	]
);
 php
DB::insert('querybuilder', [
    [
        'name' => 'Keramot UL Islam',
        'email' => '[email protected]',
    ]
]);
 php
DB::drop('posts');
DB::dropIfExists('terms');
 php
$db = new DB();

$result =
$db::select('posts.ID', 'posts.post_title')
    ...

$db::create('meta')
    ...
 php
$db = new DB('wpdb');

$db::select('posts.post_title')
    ->from('posts posts')
    ->get();