PHP!
- Started
- Last post
- 15 Responses
- bigredmailbox
Hi,
How would i go about making a php script that gets email addresses from a db and then sends an email to them???
- cosmo0
writing the script for you. give me a second.
- cosmo0
$fromEmail =
// sql: select email address
$sql = "SELECT tablename.emailAddress FROM tablename";
$result = mysql_query($sql);
if (!$result){echo("Error performing query: " . mysql_error() . "");}while ($query_data = mysql_fetch_array($result))
{
mail ($query_data['emailAddress'], "Subject goes here", "Message body goes here", "From: ".$fromEmail);
} // end while
- Hewmiri0
oh snap!
- blaw0
you should buy cosmo a drink for that.
- canuck0
That code takes all your monies and makes cosmo rich
- canuck0
don't believe me huh?
Just take a look at all those dolla signs in it!
- cosmo0
I might have typed a billion dollar signs till date, yet my bank account is at -34.02. Fuckers wouldn't let the two pennies go by.
- bigredmailbox0
THANKYOU!!!!!!!!!!!!!!!!
- blaw0
don't believe me huh?
Just take a look at all those dolla signs in it!
canuck
(Feb 15 07, 12:01)----
hahahaha!
- jpea0
i love seeing bigredmailbox's progression on NT. seriously, by the time the dude's like 15 he'll be taking our jobs.
- cosmo0
i love seeing bigredmailbox's progression on NT. seriously, by the time the dude's like 15 he'll be taking our jobs.
jpea
(Feb 15 07, 12:48)hopefully we will be more advanced by then.
- jpea0
he's got 2-3 years to get better, right? isn't he 12?
- Point50
pssshhhtt, he won't be taking my job!
...cuz it would be like 5 steps backwards for him. :(
- bigredmailbox0
hahahaha!
____
And yes i am 12.
- cosmo0
did that code work for you bigred?