just a simple for a mail() amd get array()

阅读更多




how would I get the emails into an array? I dont want to type them all out..?
if ($result = mysql_query("SELECT email FROM users")) {  if (mysql_num_rows($result)) {    $users = array();    while ($row = mysql_fetch_assoc($result)) {      $users[] = $row['email'];    }  }}

你可能感兴趣的:(MySQL,PHP)