I have a page where there is table and each row has a icon for detailed information. When the icon is clicked, I get the unique identifier for that row into datastring and send a AJAX request. I get a response but cannot catch the correct response. Why is that I am doing wrong? I need to access the $desc in home.php , how to catch that in response ?
home.php
$.ajax({
type: "POST",
url: "actionone.php",
data: dataString,
cache: true,
success:function() {
alert("success");
}
});
actionone.php
if(isset($_POST['content']))
{
$content=(int)$_POST['content'];
$fetch = mysql_query("SELECT ISSUEDESCRIPTION FROM issues WHERE KBID =$content");
while($rowe = mysql_fetch_array($fetch))
{
$desc = $rowe['ISSUEDESCRIPTION'];
}