i am trying to call back a string in PHP JQUERY

darbo2009

New Member
I am trying to call back the value of content_columns to jquery.PHP CODE:\[code\]if($act=="getcol"){$pid=$_GET['pid'];$domain_id = 1;$PAGEresult = mysql_query("SELECT * FROM pages WHERE domain_id='$domain_id' AND id='$pid' ORDER BY id DESC");$PAGErow = mysql_fetch_array($PAGEresult);echo json_encode($PAGErow['content_columns']); }\[/code\]jQuery\[code\]$.get("get_actions.php?act=getcol&pid="+pid, function(data){ alert(data); });\[/code\]Can someone lead me down the right path please.
 
Back
Top