simple verison

Questionssimple verison
Paul Hagerty asked 8 years ago

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


<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>
<h1>My First Heading</h1>


mysql_connect("localhost", "xxx_xx", "xxx");

$g = new jqgrid($db_conf);
$g->select_command = "SELECT * from BF_BLEEPPRODUCTS";

echo $out;

i get a page saying my first heading


1 Answers
Abu Ghufran answered 8 years ago

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

Your Answer

8 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?