View Full Version : Json Problem

manish soni
07-25-2012, 01:22 PM

I am using this code to get data in json, in that i need html code also but when i am uploading html code in database its getting store in database but in json output its not coming properly and beacause of that my json link is not working so can you please help me out?
I am trying to upload this code and its getting store in database but i am not getting proper out put so link is not working properly.

ex:- <iframe class=\"youtube-player\" type=\"text/html\" width=\"320\" height=\"480\" src=\"http://www.youtube.com/embed/5031kVaBBMU\" frameborder=\"0\" allowfullscreen></iframe>

Manish Soni

07-25-2012, 05:40 PM
Which parameter isn't working? I don't understand what you're trying to accomplish here.

$parentid = $_REQUEST['parentid'];

if($pageid!='') {

$query1=mysql_query("select * from page_master where page_id='".$pageid."'");
while($rows1 = mysql_fetch_array($query1))
$pages1 [] = array(
'pageid' => $rows1['page_id'],
'title' => $rows1['page_title'],
'type' => $rows1['page_type'],
'desc' => $rows1['description'],
'Nexturl' => $rows1['url'],
'prevurl' => '48'


foreach( $pages1 as $page1 )


echo str_replace("\/","/",json_encode($sxml));
// Output JSON.