Mark
I have just been doing this so it is quite fresh in my mind. here is my code
function find_users_email($sql)
{
$result = mysql_query($sql);
$num_rows = mysql_num_rows($result);
while ($i <$num_rows)
{
$row = mysql_fetch_array($result,$num_rows);
$email_list[$i] = $row[email];
$i++;
}
return $email_list;
}
then in the page you want display the results i had the following
while($i < sizeof($email_list))
{
print "<br>$email_list_1[$i] ($i)<br>";
$i++;
}
if you have any questions just ask away!
GM