How to display MySQL database entries in HTML table using JavaScript?
I have successfully displayed the MySQL table in HTML data table, however, there is a bug that makes the display incorrect. see image: this is the code behind the display. JAVASCRIPT: $(document).ready(function(){ loadAccountList(); }); function loadAccountList() { $.ajax({ /*url: "../srtdash/php_functions/account_list.php", type: "POST", dataType: "JSON", data: {}, //this is data you send to your server*/ type: 'POST', url: '../srtdash/php_functions/account_list.php', dataType: 'json', data: {}, contentType: 'application/json; charset=utf-8', success: function(res) { for (var i = 0; i < res.l
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.