Errors box pops up with simple phpgrid code since this is my first use. The error box only states error and then lists the data from the database at the bottom of the box in red.
Hi
This usually happens when there is a white spaces before the grid->render() function. it must be called before any thing is sent to output. The output of ajax call must be json without spaces. check faq for more.
Abu,
Can you explain? Where should I be looking for white spaces?
Also my page is set up as such
include('header.php');
sample phpgrid code from site with my info
include('footer.php');
The grid comes up on the page with the proper column titles from the database but then the error window pops up.
Thanks
Grid code consist of 2 parts.
1) PHP Side
include("inc/jqgrid_dist.php");
$g = new jqgrid();
…..
$out = $g->render("list1");
2) HTML Side
<div style="margin:10px">
<?php echo $phpgrid_output?>
</div>
Now the PHP side code must be plugged before any header output or html. You can place 2nd part where you wish to display grid.