Please House how else can I iterate the 'response' because this is not working. But the connection to the dB is okay
/* AJAX SECTION COMPLETE */ $(document).ready(function() { load_comment(); function load_comment() { $.ajax({ type: "POST", url: "code.php", data: { 'comment_load_data': true }, success: function(response) { $('.comment_container').html(""); // console.log(response); $.each(response, function(key, value) { $('.comment_container').append('<div style="margin-left: 1px; width: 95%;" class="reply_box commentHeading ">\ <h6 class="username"> '+ value.user["fullname"] +' : '+ value.cmt["commented_on"] +' </h6>\ <p class="para"> '+ value.cmt["msg"] +' </p>\ <button class="reply_btn btn_warning"> Reply </button>\ <button class="view_reply_btn btn_danger"> View Replies </button>\ <div class="reply_section">\ </div>\ </div>\ '); }); } }); } });