<?php $sql = dbquery("SELECT user_email FROM ".$db_prefix."users"); while($data = dbarray($sql)) { echo $data['user_email']."<br>"; } ?>