Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // include db config
- include_once(".../config.php");
- // set up DB
- mysql_connect(PHPGRID_DBHOST, PHPGRID_DBUSER, PHPGRID_DBPASS);
- mysql_select_db(PHPGRID_DBNAME);
- // include and create object
- include('.../lib/inc/jqgrid_dist.php');
- // set few params
- $grid = new jqgrid();
- $opt["caption"] = "Sample Grid";
- $grid->set_options($opt);
- // set database table for CRUD operations
- $grid->table = "demotable";
- // render grid and get html/js output
- $out = $grid->render("Demo Table");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement