Here is the code I\'m using to pull the data from the table:
require_once \'connect.php\'; $sql = "SELECT * FROM `db-news`"; $result = $mysqli->query
Use do while instead of while as it will not skip the first step.
do while
while