I have a drop down list with an option of send email to ALL members. This is my code-
if ($submit && $emails == "ALL"){
$Query="select user_name from $TableName order by user_name";
$Result=mysql_db_query($DBName,$Query,$Link);
$Result_num=mysql_num_rows($Result);
$colum = mysql_fetch_array($Result);
for($i=0;$i<$Result_num;++$i){
$column=mysql_fetch_array($Result);
$headers = "From: NAME*<EMAIL*>\r\n";
$user_email = "$colum[user_email]";
mail($user_email, $subject, $text, $headers);
}
echo ("You sent an e-mail to ALL the members");
echo '<form method="post" action="email.php">';
echo '<p><input type="submit" value="Send Another E-Mail" name="submitagain">';
echo '</form>';
}
And that doesn't work, any ideas on what to do?
Thanks, Dan.