How to get data from MySQL database with PHP and put it in an HTML table - Code Explained