Hey ,
I tried to send some data to different page and want to use it response ...
But the problem i face is the code is working properly on my local host but when i put it over web it always gave me an error ...
catalog_no=$('#srno').val();
//alert(catalog_no);
query="select * from new_prod where ccatalog='"+catalog_no+"'";
alert(query);
$.ajax({
url : 'http://mocktests2011.com/ankur/ajex_sent1.php',
type : 'POST',
data : {'queryString': query},
dataType : 'application/json',
success : function (result){
$('#amount').val(result['p_price']);
$('#pname').val(result['p_name']); // The value of your php $row['adverts'] will be displayed
},
error : function () {
alert("error");
}
});
Here it the live link for the same
http://mocktests2011.com/ankur/bills.php