<?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: Problem with "example.php" in documentation</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation</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/bugs/problem-with-example-php-in-documentation/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ssaccone on Problem with "example.php" in documentation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation#p18208</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation#p18208</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>HEllo,</p>
<p>Download the demo and use this one. Copy Paste is not recommended</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Perfect, I located the example code in the <a href="/blog/?page_id=6" target="_blank">downloads section</a>. Is this what you were referring to? It&#39;s nice to have the html, js, php &#38; mysql dumps all in one place.</p>
<p>However, I believe the same problem exists in these files. I can install these files on my server and view the "Array Data" example, but examples calling mysql show no data in the table.&#160; PHP reports errors like this:</p>
<blockquote>
<p>PHP Notice:&#160; Use of undefined constant note - assumed &#39;note&#39; in /var/www/html/js-ex/jqGrid/jqgrid_demo/server.php on line 157</p>
</blockquote>
<p>And that line is:</p>
<blockquote>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;cell&#39;]=array($row[id],$row[invdate],$row[name],$row[amount],$row[tax],$row[total],$row[note]);</p>
</blockquote>
<p>I think you need quotes around the MySQL column names, at least for my version of PHP which is 5.1.6. There is more information on PHP &#38; quoting array keys <a href="http://php.net/manual/en/language.types.array.php" target="_blank">here</a>.</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 18:18:38 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Problem with "example.php" in documentation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation#p18183</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation#p18183</guid>
        	        	<description><![CDATA[<p>HEllo,</p>
<p>Download the demo and use this one. Copy Paste is not recommended</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 10:27:21 +0300</pubDate>
        </item>
        <item>
        	<title>ssaccone on Problem with "example.php" in documentation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation#p18170</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-example-php-in-documentation#p18170</guid>
        	        	<description><![CDATA[<p>I found that example.php at&#160;</p>
<p>/jqgridwiki/doku.php?id=wiki:first_grid would not work unless I quoted the MySQL column names in expressions like $s .= "&#60;cell&#62;". $row[invid]."&#60;/cell&#62;" - use $row["invid"] instead.  Otherwise it causes an error in PHP, and the table will display with no data.</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 04:48:48 +0300</pubDate>
        </item>
</channel>
</rss>