<?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);
?>