/    Sign up×
Community /Pin to ProfileBookmark

send email to every1 in my db

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
[/code]

what am i doin wrong or is there a better way?

Thanks
Adam

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@pyroOct 11.2004 — The error is because you forgot the semicolon after the extract line...
Copy linkTweet thisAlerts:
@k0r54authorOct 11.2004 — i dont know wat to say :o

i hate it when i do that

Thanks

adam
Copy linkTweet thisAlerts:
@pyroOct 11.2004 — hehe... you bet. ?
×

Success!

Help @k0r54 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...