Location: PHPKode > scripts > Ultimate DB Access Wrapper > ultimate-db-access-wrapper/example_2.php
<?php
require_once "db.php";
$db = new db();

// Fill in the following
$db->user = '';
$db->host = '';
$db->pass = '';
$db->dbname = '';
$tbl_name = 'table in database';

// Connecting to db
$db->connect();

$sql = array(
    'SELECT' => '*',
    'FROM' => "$tbl_name"
);

// Setting the generated SQL to the variable
$db->last_sql = $db->build_key_query($sql);

// Getting the results from the generated SQL
$db->last_sql_data(true, false);
?>
Return current item: Ultimate DB Access Wrapper