Is there a sample to use, i just want to basically point this phpgrid at a table so a user can edit it
i have tried the following
<html>
<head>
<link href="/lib/js/themes/start/jquery-ui.custom.css" rel="stylesheet" media="screen" type="text/css" />
<link href="/lib/js/jqgrid/css/ui.jqgrid.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="/lib/js/jquery.min.js"></script>
<script type="text/javascript" src="/lib/js/jqgrid/js/i18n/grid.locale-en.js"></script>
<script type="text/javascript" src="/lib/js/jqgrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="/lib/js/themes/jquery-ui.custom.min.js"></script>
</head>
<body>
<h1>My First Heading</h1>
</body>
</html>
<?php
mysql_connect("localhost", "xxx_xx", "xxx");
mysql_select_db("fishingr_PaulSystems");
include("/lib/inc/jqgrid_dist.php");
$g = new jqgrid($db_conf);
$g->select_command = "SELECT * from BF_BLEEPPRODUCTS";
echo $out;
?>
i get a page saying my first heading
thanks
Here is demo.
Few things to consider:
1) Make sure you call render() function before any html.
2) CSS/JS file path should be correct
3) Lib path (jqgrid_dist.php) should be correct