The following php script sends two (2) e-mails to each addressee. Why?
<?php
$connection=mysql_connect("localhost","wagner","XXX") or die ("No
connection!");
$db=mysql_select_db("sbwresearch",$connection) or die ("No database!");
$message=" Dear consumer,\n
The following are the online surveys ... etc.\n";
$qry_1="select * from con_inf";
$result_1=mysql_query($qry_1,$connection) or die ("No query # 1!");
while ($row_1=mysql_fetch_array($result_1, MYSQL_ASSOC))
{
$e_mail=$row_1["e_mail"];
mail("$e_mail",
"News from SBW Research",
"$message",
"From:SBW Research <[EMAIL PROTECTED]>\n");
};
mysql_free_result($result_1);
mysql_close($connection);
header ("location:done.htm");
exit;
?>
Anthony Rodriguez
([EMAIL PROTECTED])
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php