simple verison

Questionssimple verison
Paul Hagerty asked 9 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

<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

1 Answers
Abu Ghufran answered 9 years ago

Here is demo.

http://pastebin.com/vkhc9idA

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

4 + 15 =

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?