Ken, my question is not with the query to the database but rather when I try to make my table from the ($rows=mysql_fetch_array($List)array, I cannot seem to iterate through the database and leave blank textboxes where the room is not associated with the row in my array, and only have the rooms that are associated with a person filled in.