If I am reading your code right, you are trying to print out user names line by line from a database.
In the while loop you are not closing off your lines with </td> and </tr>
So if your fetches are retrieving names such as "Someone1", "Someone2", and "Someone3" you would get output like the following:
<tr><td>Someone1<tr><td>Someone2<tr><td>Someone3...
That wouldn't work too well.