include("inc/jqgrid_dist.php");
$g = new jqgrid();
// set few params
$grid["caption"] = "Active uses";
$grid["autowidth"] = true;
$g->set_options($grid);
// set database table for CRUD operations
// $g->table = "members";
…
$out = $g->render("list1");
instead of ($g->table = "clients") I need pass a SQL query
something like ($g->query = "SELECT * FROM members WHERE active='1'";)
How would you do that?
1 Answers
Your Answer