<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Getting Advanced Search variables in PHP</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ergo_summary on Getting Advanced Search variables in PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13898</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13898</guid>
        	        	<description><![CDATA[<p>Not to worry- I solved the issue utilising/referencing the excellent raft of demo files in the demo repository (search_adv.php specifically).</p>
</p>
<p>Many thanks indeed for your help- &#38; what a great product!</p>
]]></description>
        	        	<pubDate>Thu, 14 Jan 2010 15:36:00 +0200</pubDate>
        </item>
        <item>
        	<title>ergo_summary on Getting Advanced Search variables in PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13894</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13894</guid>
        	        	<description><![CDATA[<p>Many thanks for your reply, however I am still having trouble with the script recognising any information at all sent by the search.</p>
</p>
<p>The Javascript I am using for my table is:</p>
<p>var lastsel; <br />&#160; $("#list").jqGrid({<br />&#160;&#160;&#160; url:&#39;example.php&#39;,<br />&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames:[&#39;field1&#39;,&#39;field2&#39;, &#39;field3&#39;,&#39;field4&#39;,&#39;field5&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;field1&#39;, index:&#39;id&#39;, width:55, hidden:true, key:true, resizable:true}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;field2&#39;, index:&#39;ticker&#39;, width:75, resizable:true,editable:true, search:true}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;field3&#39;, index:&#39;name&#39;, width:200, align:&#39;left&#39;, resizable:true,editable:true, search:true}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;field4&#39;, index:&#39;alias&#39;, width:200, align:&#39;left&#39;, resizable:true,editable:true, search:true}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;field5&#39;, index:&#39;details&#39;, width:400, align:&#39;left&#39;, sortable:false, resizable:true,editable:true, search:true}<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; height:&#39;100%&#39;,&#160;&#160;&#160; <br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[50,100,200],<br />&#160;&#160;&#160; sortname: &#39;ticker&#39;,<br />&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160;&#160; viewrecords: true<br />&#160; }); </p>
<p>$("#list").jqGrid(<br />&#160;&#160;&#160; &#39;navGrid&#39;,"#pager",<br />&#160;&#160;&#160; {edit:true,add:true,del:true},<br />&#160;&#160;&#160; {}, // edit options<br />&#160;&#160;&#160; {}, // add options<br />&#160;&#160;&#160; {}, //del options <br />&#160;&#160;&#160; {multipleSearch:true} // search options <br />);</p>
<p>In example PHP I have the code:</p>
<p>$filters = json_decode($_REQUEST[&#39;filters&#39;],true);</p>
<p>if($filters==""){<br />&#160;&#160;&#160; echo "arbitrary text to break the reposnse and give a blank table";<br />}</p>
<p>This should mean that when the table loads its blank as the data output is &#39;wrong&#39; due to the text above appearing, but when search criteria is entered it is propogated as appropriate.</p>
</p>
<p>However, it seems regardless, $filters remains empty.</p>
<p>Any help hugely appreciated!</p></p>
]]></description>
        	        	<pubDate>Thu, 14 Jan 2010 13:33:45 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Getting Advanced Search variables in PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13843</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13843</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The searchfilter set a filters tag to the server</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:advanced_searching" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>....._searching</a></p>
<p>Something like</p>
<p>$filters = $_REQUEST[&#39;filters&#39;]; //this a json string you will need to make it to array</p>
<p>$myserchs = json_decode($filters,true);</p>
</p>
<p>print_r($myserchs);</p>
<p>Enjoy</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 18:10:32 +0200</pubDate>
        </item>
        <item>
        	<title>ergo_summary on Getting Advanced Search variables in PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13773</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-advanced-search-variables-in-php#p13773</guid>
        	        	<description><![CDATA[<p>Hi, I was wondering if anyone was able to help me out with a small question regarding the advanced search functionality.</p>
</p>
<p>I am aware that (in PHP) the search variables for a standard search can be fetched with $_GET[&#39;_search&#39;], $_GET[&#39;searchOper&#39;]...(etc)..however I cant for the life of me work out how to fetch the multiple criteria/terms passed with an advanced search. Is the data serialised and/or passed in an array (i.e. searchOper[0, 1, 2, etc...]). Also, as an aside, the &#39;_search&#39; variable always appears to be &#39;true&#39;, regardless of whether a search is being made or not, not sure if this is a bug/issue?</p>
</p>
<p>Many thanks for any help, much appreciated!</p>
]]></description>
        	        	<pubDate>Mon, 11 Jan 2010 11:37:07 +0200</pubDate>
        </item>
</channel>
</rss>