Installation

 

Requirements

  • The Apache web server
  • PHP 4.3+ or 5.1+
  • MySql 4.1+ or 5.0+
  • A database table with some data in it
  • Your favorite text editor

 

Steps-by-step

 

1. Unpack kdatagrid.zip into a folder accesible by your webserver.

Examples:

C:\Apache\htdocs\kdatagrid
/home/user/www/kdatagrid

 

2. Create a file called test.php in a folder accessible by your webserver and open it in a text editor.

 

3. Include the kdatagrid library file.

<?php

include('kdatagrid.php');

?>

 

4. Create a new kDataGrid object.

<?php

include('kdatagrid.php');

$grid = new kDataGrid();

?>

 

5. Set database connection parameters.

<?php

include('kdatagrid.php');

$grid = new kDataGrid();

$grid->set_db_params('localhost''username''password''database');

?>

 

6. Map a data table.

<?php

include('kdatagrid.php');

$grid = new kDataGrid();

$grid->set_db_params('localhost''username''password''database');

$grid->map_table('clients');

?>

 

7. Show the grid.

<?php

include('kdatagrid.php');

$grid = new kDataGrid();

$grid->set_db_params('localhost''username''password''database');

$grid->map_table('clients');

$grid->show();

?>