PHP Classes

File: example_2.php

Recommend this page to a friend!
  Classes of Bogdan Lupandin   MySQL Access Wrapper   example_2.php   Download  
File: example_2.php
Role: Example script
Content type: text/plain
Description: Example of a tabular view of a database
Class: MySQL Access Wrapper
MySQL database access wrapper
Author: By
Last change: Brought the example file up to date with the main class
Date: 11 years ago
Size: 358 bytes


Class file image Download
require_once "db.php";
$db = new db();

// Fill in the following
$tbl_name = 'table in database';

$sql = array(
'SELECT' => '*',
'FROM' => $db->dbname

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