<?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: unable to post data from edit form to DB..</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-post-data-from-edit-form-to-db</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/unable-to-post-data-from-edit-form-to-db/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dams on unable to post data from edit form to DB..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-post-data-from-edit-form-to-db#p15380</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-post-data-from-edit-form-to-db#p15380</guid>
        	        	<description><![CDATA[<p>Hello ,</p>
<p>View my sample code for update product in database with edit form : (&#160;my little experiance and my english ...&#160;<img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /> )</p>
</p>
<p><strong><span style="text-decoration: underline;">.HTML :</span></strong></p>
<p><input type='button' class='sfcodeselect' name='sfselectit8730' value='Select Code' data-codeid='sfcode8730' /></p>
<div class='sfcode' id='sfcode8730'>
<p>var gridimgpath = &#39;js/themes/start/images/&#39;<br />jQuery(document).ready(function(){<br />jQuery(&#34;#s1list&#34;).jqGrid({<br />&#160;sortable: true,<br />&#160;&#160; &#160;<a href=&#34;/blog/&#39;data/devis_detail_view.php?q=1&#38;NumFactures=&#34; target="_blank">url:&#39;data/devis_detail_view.php?q=1&#38;NumFactures=&#60;?php</a> echo $NumFactures_Factures?&#62;&#39;,<br />&#160;datatype: &#34;json&#34;,<br />&#160;&#160;&#160; colNames:[&#39;Actions&#39;,&#39;Interne&#39;,&#39;Produit&#39;,&#39;Reference&#39;, &#39;Libeller&#39;,&#160; &#39;Commentaire&#39;, &#39;Quantite&#39;, &#39;Remise&#39;,&#39;Prix unitaire&#39;,&#39;Prix total&#39;],<br />&#160;&#160;&#160; colModel:[<br />&#160;&#160;{name:&#39;act&#39;,index:&#39;act&#39;, width:15,sortable:false,align:&#34;center&#34;},<br />&#160;&#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:20,align:&#34;center&#34;,hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id_produit&#39;,index:&#39;id_produit&#39;, width:20,align:&#34;center&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Reference&#39;,index:&#39;Reference&#39;, width:45,align:&#34;center&#34;},<br />&#160;&#160;{name:&#39;Libeller&#39;,index:&#39;Libeller&#39;, width:45,align:&#34;center&#34;},<br />&#160;&#160;{name:&#39;commentaire&#39;,index:&#39;commentaire&#39;, width:50, align:&#34;center&#34;,editable: true,edittype:&#34;textarea&#34;, editoptions:{rows:&#34;5&#34;,cols:&#34;30&#34;}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;quantite&#39;,index:&#39;quantite&#39;, width:30, align:&#34;center&#34;,editable:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Remise&#39;,index:&#39;id_remise&#39;, width:20, align:&#34;center&#34;,editable:true},&#160;&#160;<br />&#160;&#160;{name:&#39;prix&#39;,index:&#39;prix&#39;, width:20,align:&#34;center&#34;,editable:true,editoptions:{size:5}},<br />&#160;&#160;{name:&#39;$total&#39;,index:&#39;$total&#39;, width:20,align:&#34;center&#34;},<br />&#160;&#160; &#160;],<br />&#160;&#160; &#160;rowNum:25,<br />&#160;&#160; &#160;mtype: &#34;POST&#34;,<br />&#160;&#160; &#160;rowList:[25,50,75],<br />&#160;&#160; &#160;imgpath: gridimgpath,<br />&#160;&#160; &#160;pager: jQuery(&#39;#s1pager&#39;),<br />&#160;&#160; &#160;sortname: &#39;id_produit&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;toolbar : [true,&#34;top&#34;],<br />&#160;cellEdit: false,<br />&#160;cellsubmit: &#39;remote&#39;,<br />&#160;cellurl:&#39;data/devis_update.php&#39;,<br />&#160;editurl: &#39;data/devis_update.php&#39;,<br />&#160;reloadAfterSubmit:true,<br />&#160;autowidth: true,<br />&#160;forceFit : true,<br />&#160;sortorder: &#34;asc&#34;,&#160;<br />&#160;gridview : true,<br />&#160;userDataOnFooter : true,<br />&#160;footerrow : true,&#160;<br />&#160;altRows : false,<br />&#160;&#160;&#160; caption:&#34;D&#233;tails des Produits&#34;,</p>
</div>
<p>&#160;<span style="text-decoration: underline;"><strong>devis_update.php :</strong></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit1724' value='Select Code' data-codeid='sfcode1724' /></p>
<div class='sfcode' id='sfcode1724'>
<p>&#60;php require_once(&#39;../Connections/gesy.php&#39;); ?&#62;<br />&#60;?php<br />include(&#39;protect.php&#39;);<br />$id=$_POST[id];<br />$quantite=$_POST[quantite];<br />$commentaire=$_POST[commentaire];<br />$remise=$_POST[Remise];<br />$prix=$_POST[prix];<br />print_r($_POST);<br />mysql_select_db($database_gesy, $gesy);<br />$modifier=&#34;UPDATE factures_produits SET&#160; quantite=&#39;$quantite&#39;, id_remise=&#39;$remise&#39;, prix=&#39;$prix&#39;, commentaire=&#39;$commentaire&#39; WHERE id=&#39;$id&#39;;&#34;;<br />$execute=mysql_query($modifier) or die(mysql_error());<br />?&#62;</p>
</div>
<p>Best regards ,</p>
]]></description>
        	        	<pubDate>Fri, 05 Mar 2010 10:36:57 +0200</pubDate>
        </item>
        <item>
        	<title>kelso on unable to post data from edit form to DB..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-post-data-from-edit-form-to-db#p15366</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-post-data-from-edit-form-to-db#p15366</guid>
        	        	<description><![CDATA[<p>Because im unable to post the data here in a readable format, refer to this post for code.</p>
<p><a href="http://stackoverflow.com/questions/2375417/jquery-jqgrids-submitting-form-data-troubles" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....a-troubles</a></p>
</p>
<p>I for the life of me can not get the form data to submit to the db. As long as reloadaftersubmit is false, it shows on the grid, but any reload of the form or grid erases my changes. Im using the navigator add/edit method. This is idealy what I want to use, but finding a "good" working example is hard to come by. your examples on the page have gotten me to where I am now, but when it comes to posting the data, noobs like me are completely lost.</p>
</p>
<p>Ive been working on this all week, and made absolutley no progress, and am at my wits end, please assist!</p>
]]></description>
        	        	<pubDate>Thu, 04 Mar 2010 20:49:43 +0200</pubDate>
        </item>
</channel>
</rss>