I just showed what was in my 46th line ... lol
I'm getting the error when I email with a valid address to my list address, which pipes through to this script that were trying to fix... the line from the code ...
if ($num)
{
$query = mysql_query("SELECT email from table");
$num = mysql_num_rows($query); // this is line 46!
while ($email = mysql_fetch_array($query)
{
$to = $email["email"];
mail("$to", "$subject", "$message", "From: [email]someone@somewhere.com[/email] <mailto:someone@somewhere.com>");
}
}
else
{
exit;
}
and I am only getting the failed delivery with that message when I send from a valid email address, the non valid ones get nada back....either that or its taking an EXTREMELY long time to return it.....I guess I'll find out soon enough!
So any suggestions? Sorry if I'm being a pain lol
edit: additionally I ran this code through my local apache with php ....
unexpected '{' in c:\program files\apache group\apache\htdocs\test.php on line 8
is what I got ... which is the following line ....
while ($email = mysql_fetch_array($query)
{ // this is the supposed unexpected {
man I dunno wtf is going wrong ....