# Documentation

## Instructions

### PHP

include_once('creativeTable.php');
$ct=new CreativeTable();
// Data Gathering
$params['sql_query'] = 'SELECT id,rating,title,votes FROM imdbtop250';
$params['search'] = $search;
$params['multiple_search'] = $multiple_search;
$params['items_per_page'] = $items_per_page;
$params['sort'] = $sort;
$params['page'] = $page;
$params['total_items'] = $total_items;
// Layout Configurations
$params['header'] = 'Rank,Rating,Title,Votes';
$params['width'] = '45,60,,70';
$ct->table($params);
$ct->display();

### HTML

You only need to include this 3 lines in the head of the html document

<link rel="stylesheet" type="text/css" href="css/creative.css">
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/creative_table-1.3.min.js"></script>
or
<script type="text/javascript" src="js/creative_table_ajax-1.3.min.js"></script>