PHP code example of shusaura85 / mythdb

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

    

shusaura85 / mythdb example snippets

 php
b_driver = 'mysqli'; // available drivers: mysqli, pgsql, sqlite3  
$db_persistent = false; // set to true to use a persistent connection  
$db_utf8names = 'UTF-8'; // if set, automatically calls query "SET NAMES <value>". not supported in sqlite  
$db = new \MythDB\Database($db_driver, 'host', 'username', 'password', 'database', $db_persistent, $db_utf8names);