[jQuery] jqgrid and php
[jQuery] jqgrid and php
I am familiar with php but I am a little troubled by the params of
jqgrid.
What exactly is ths server side script supposded to look like when
using this script.
This is what I am using, but I know it isnt correct.
My trouble comes from the page tags.
-TJ
<?php
if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
header("Content-type: application/xhtml+xml"); } else {
header("Content-type: text/xml");
}
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
include("admin/config.php");
$result5 = mysql_query("SELECT * FROM stations where
state='$_GET[state]'") or die("Couldn't ececute
query.".mysql_error());
?>
<rows>
<page></page>
<total>22</total>
<?>
while($row4 = mysql_fetch_array($result5)){
?>
l>
<row id='<? echo $row4[id];?>'>
<cell>1</cell>
<cell><? echo $row4[state];?></cell>
<cell><? echo $row4[county];?></cell>
<cell><? echo $row4[name];?></cell>
<cell><![CDATA[<? echo $row4[url];?>]]></cell>
</row>
<?
}
?>
</rows>