<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Problem with saving  Json encoded datas.]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5121</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5121&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Problem with saving  Json encoded datas..]]></description>
		<lastBuildDate>Mon, 01 Sep 2014 06:21:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problem with saving  Json encoded datas.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20616#p20616</link>
			<description><![CDATA[<p>i tried, but it saves html characters not the double quotes.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Mon, 01 Sep 2014 06:21:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20616#p20616</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with saving  Json encoded datas.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20613#p20613</link>
			<description><![CDATA[<p>Use escape character &quot;\&quot;</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 31 Aug 2014 12:12:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20613#p20613</guid>
		</item>
		<item>
			<title><![CDATA[Problem with saving  Json encoded datas.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20608#p20608</link>
			<description><![CDATA[<p>Hi, </p><p>Here i am developing a hrm module for FA. in the middle, i have the problem of saving json encoded data. Here is my code, </p><p>$kv_sal_structure = array( <br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_hra&#039; =&gt; (empty($_POST[&#039;empl_hra&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_hra&#039;], <br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_ca&#039; =&gt; (empty($_POST[&#039;empl_ca&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_ca&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_fa&#039; =&gt; (empty($_POST[&#039;empl_fa&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_fa&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_ma&#039; =&gt; (empty($_POST[&#039;empl_ma&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_ma&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_ea&#039; =&gt; (empty($_POST[&#039;empl_ea&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_ea&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_sa&#039; =&gt; (empty($_POST[&#039;empl_sa&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_sa&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_lta&#039;&nbsp; &nbsp;&nbsp; =&gt; (empty($_POST[&#039;empl_lta&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_lta&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_pt&#039; =&gt; (empty($_POST[&#039;empl_pt&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_pt&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_gi&#039; =&gt; (empty($_POST[&#039;empl_gi&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_gi&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_pf&#039; =&gt; (empty($_POST[&#039;empl_pf&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_pf&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_esi&#039; =&gt; (empty($_POST[&#039;empl_esi&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_esi&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_l_a&#039; =&gt; (empty($_POST[&#039;empl_l_a&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_l_a&#039;],<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;empl_it&#039; =&gt; (empty($_POST[&#039;empl_it&#039;])) ? &#039;0&#039; : $_POST[&#039;empl_it&#039;]); <br />&nbsp; &nbsp; $sal_structure =json_encode($kv_sal_structure);</p><p>Here i got check box vaules and make it as array and processed as array, than i tried to save it on database, but while saving into the database, it looks like the following structue.</p><br /><p>html &quot;&amp;quote &quot; instead of double quotes. </p><p>How can i save the data like </p><br /><p>{&quot;empl_hra&quot;:&quot;1&quot;,&quot;empl_ca&quot;:&quot;1&quot;,&quot;empl_fa&quot;:&quot;0&quot;,&quot;empl_ma&quot;:&quot;0&quot;,&quot;empl_ea&quot;:&quot;0&quot;,&quot;empl_sa&quot;:&quot;0&quot;,&quot;empl_lta&quot;:&quot;0&quot;,&quot;empl_pt&quot;:&quot;0&quot;,&quot;empl_gi&quot;:&quot;0&quot;,&quot;empl_pf&quot;:&quot;0&quot;,&quot;empl_esi&quot;:&quot;0&quot;,&quot;empl_l_a&quot;:&quot;0&quot;,&quot;empl_it&quot;:&quot;0&quot;}</p><p>Help me to solve it.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 31 Aug 2014 05:49:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20608#p20608</guid>
		</item>
	</channel>
</rss>
