Menu
Hi
I am trying to send an email to every1 in my database where active = yes
I am using this put gettin T_Variable error on $msg ‘ ????
[code=php]
$check = “SELECT * FROM livenotification WHERE Active = ‘Yes'”;
$check_res = mysql_query($check,$conn) or die (mysql_error());
if (mysql_num_rows($check_res)<1) {
echo “Sorry error.”;
} else {
while ($row = mysql_fetch_array($check_res)){
extract($row)
//prepare email
$msg = ‘
<html>
//the rest of the email
what am i doin wrong or is there a better way?
Thanks
Adam