I am pretty green when it comes to PHP and mySQL but am trying to make a conscious effort to self teach. I have started what I hope is on the right path to creating function in php that uses email address in a array from a database to send emails. If anybody could point me in the correct direction of what I am doing wrong that would be great.
[CODE]
<?
//connect to database
// query database for column ’emails’
//creat an array from email address in database… not sure how to do this…….
$subject = ‘mail’;
$message = ‘this is a test eamil’;
//add headers
count = email_array.length;
for (i = 0; i < count; i++){
$email_adress = email_array[i];
mail($email_address,$subject,$message);
}
?>
I am sure there has got to be a tutorial out there just not having much luck in finding one so thanks ahead of time for any help.
denoteone.