NebuJohn Posted July 25, 2013 Share Posted July 25, 2013 (edited) Below Given is my Code. $array=$_POST[number]; $jstring = json_decode($array,true); $sa = "'".implode("','",$jstring)."'"; The error is given below. Warning: implode() [function.implode]: Invalid arguments passed <root> on line <line no> 'number' is a JSON object. Edited July 25, 2013 by NebuJohn Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 25, 2013 Share Posted July 25, 2013 need more info Quote Link to comment Share on other sites More sharing options...
NebuJohn Posted July 25, 2013 Author Share Posted July 25, 2013 May i Know what all information you need more. number is a Jason object which holds numbers from mobile contact. I was able to append that into a file. Now i need that data to be fetched into a SQL query as comma separated string. Quote Link to comment Share on other sites More sharing options...
Solution NebuJohn Posted July 25, 2013 Author Solution Share Posted July 25, 2013 I fixed this problem. Sharing with others. $array=$_POST[number]; $jstring = (array)json_decode($array,true); $sa = "'".implode(',',$jstring)."'"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.