help with while loop

Hi, in changeing from MYSQL to MYSQLi (that's where the blame goes) I can't get a clear understanding as to the proper code
for the while loop. help please. code follows:
——————————————————
<html><body>
<hr>
<center><b><font size=+2> 515 Certification Expiration Report</font><br>06/22/2020 – 06/22/2021<p>

<hr>

<?php
//Open a new connection to the MySQL server
require_once "getprerentdb.php";

//MySqli Select Query
$ results = $ mysqli->query (SELECT * FROM…

help with while loop