PClib demo site

<?php
/* project: Basic grid, file: basicgrid.php */

//Include pclib framework
require 'pclib/pclib.php';

//Create pclib application
$app = new PCApp('demo');

$datasource 'mysql://root@localhost/test';

$app->db = new PCDb($datasource);

//Initialize grid template, set grid query and write grid out
$grid = new PCGrid('tpl/shopgrid.tpl');
$grid->setQuery('select * from PRODUCTS');

print 
$grid;

?>

Elapsed time: 1.69 ms