while ($mileage = $db->fetch_array($mileage2010)){$username = $milieage['username'];// and then spit it out in a template each time you go through the loop}