Trying to get PHP responce on ajax
Clash Royale CLAN TAG #URR8PPP Trying to get PHP responce on ajax here I am trying to update the MSQL table using jquery , both PHP code and jquery script is written on the same page, the code working fine to update my tables but the response msg is not getting by the ajax so it always shows me the default message "Some problem occurred, please try again.". here is the code: <!-- HTML code to display msg --> <p class="statusMsg_post"></p> <script> $(document).ready(function(){ $('#btn_publish').click( function(){ var obj_post_postID="<?php echo $post_id; ?>"; var publish_post="publish"; $.ajax({ type:'POST', // url:'post_view.php', data:{ "post_status_update":publish_post, "obj_post_status":obj_post_postID, }, success:function(res){ if(res==...