Posted: Tue Oct 22, 2002 10:35 am
$formset = mail("$sendmail[email][$x];
Multi-dimensional arrays are fun.
Multi-dimensional arrays are fun.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
code:
$count = count($sendmailїemail]);
for ($x=0;$x<=$count;$x++)
{ // $formsent is line 77
$formset = mail("$sendmailїemail]ї$x]","$subject - News Letter","$message1","From:$getїmail]");
print("$sendmailїemail]ї$x]<br>");
}Code: Select all
errors:
Warning: Server Error in c:\apache\htdocs\phpmailinglist\main.php on line 76
qadeer_uk2001@yahoo.comї0]
Warning: Server Error in c:\apache\htdocs\phpmailinglist\main.php on line 76
qadeer_uk2001@yahoo.comї1]
Warning: Server Error in c:\apache\htdocs\phpmailinglist\main.php on line 76
qadeer_uk2001@yahoo.comї2]
Warning: Server Error in c:\apache\htdocs\phpmailinglist\main.php on line 76
qadeer_uk2001@yahoo.comї3]
Warning: Server Error in c:\apache\htdocs\phpmailinglist\main.php on line 76
qadeer_uk2001@yahoo.comї4]Code: Select all
if(IsSet($send))
{
$admininfo = "SELECT mail,Website FROM admin WHERE username='$admin'";
$getinfo = mysql_query($admininfo) or die("Error While geting admin information.");
$get = mysql_fetch_array($getinfo);
$re = mysql_query("SELECT `ID`, name, `email` FROM `members`");
$sendmail = mysql_fetch_array($re);
$message = stripcslashes($message);
$sendmail = mysql_fetch_array($re);
$count = count($sendmailїemail]);
for ($x=0;$x<=$count;$x++)
{
$message1 = "$message
*****If you would to like to be removed from this list then please click on this link $getїWebsite]/remove.php?name=$sendmailїname]ї$x]&ID=$sendmailїID]ї$x], if you can't click it then copy and paste into your address bar.
******";
$formset = mail("$sendmailїemail]ї$x]","$subject - News Letter","$message1","From:$getїmail]");
print("$sendmailїemail]ї$x]<br>"); //email address check
}
Print("<b>Email(s) Has Been Sent!</b>");
}Can you try to put ';' at the end of this ^^^ line?qads wrote:Code: Select all
$message1 = "$message
Code: Select all
$sendmail = mysql_fetch_array($re);
$message = stripcslashes($message);
$sendmail = mysql_fetch_array($re);Code: Select all
if(isset($send)) {
$admininfo = "SELECT mail, Website FROM admin WHERE username='$admin'";
$getinfo = mysql_query($admininfo) or die('Error While geting admin information.');
$get = mysql_fetch_assoc($getinfo);
$message = stripslashes($message);
$re = mysql_query("SELECT `ID`, name, `email` FROM `members`") or die('Could not select e-mails');
while ($row = mysql_fetch_assoc($re)) {
$message1 = $message;
$message1 .=<<<END
*****If you would to like to be removed from this list then please click on this link {$getї'Website']}/remove.php?name={$sendmailї'name']}&ID={$sendmailї'ID']}, if you can't click it then copy and paste into your address bar.
******
END;
$formset = mail($sendmailї'email'], $subject.' - News Letter', $message1, 'From:'.$getї'mail']);
echo $sendmailї'email'].'<br />';
}
echo '<b>Email(s) Have Been Sent!</b>';
}Code: Select all
$query = mysql_query("select email from members");
while($row = mysql_fetch_array($query))
{
$email = $rowї0];
mail($email, $subject, $message, $headers);
}
print("Email Sent);