<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Problem with saving  Json encoded datas.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5121&amp;type=atom" />
	<updated>2014-09-01T06:21:00Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5121</id>
		<entry>
			<title type="html"><![CDATA[Re: Problem with saving  Json encoded datas.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20616#p20616" />
			<content type="html"><![CDATA[<p>i tried, but it saves html characters not the double quotes.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2014-09-01T06:21:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20616#p20616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problem with saving  Json encoded datas.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20613#p20613" />
			<content type="html"><![CDATA[<p>Use escape character &quot;\&quot;</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-08-31T12:12:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20613#p20613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem with saving  Json encoded datas.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20608#p20608" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2014-08-31T05:49:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20608#p20608</id>
		</entry>
</feed>
