franknu Posted May 25, 2007 Share Posted May 25, 2007 Ok, I dont even know if this is possible or what is the logic to it. but what i want is to email everyone in the database who match certain criterias.. i mean i will do something like lets say select from email Where (type=$type) what is the best way to do this there is a fuction that will do that Please help Quote Link to comment https://forums.phpfreaks.com/topic/52960-mailto/ Share on other sites More sharing options...
pocobueno1388 Posted May 25, 2007 Share Posted May 25, 2007 <?php $query = mysql_query("SELECT email FROM email WHERE type='$type'"); while ($row = mysql_fetch_assoc($query)){ //perform mail function } ?> Just use $row['email'] in the spot where you put who the email is going to. Quote Link to comment https://forums.phpfreaks.com/topic/52960-mailto/#findComment-261571 Share on other sites More sharing options...
franknu Posted May 25, 2007 Author Share Posted May 25, 2007 sorry but which one is the mail function Quote Link to comment https://forums.phpfreaks.com/topic/52960-mailto/#findComment-261800 Share on other sites More sharing options...
penguin0 Posted May 25, 2007 Share Posted May 25, 2007 mail(); Quote Link to comment https://forums.phpfreaks.com/topic/52960-mailto/#findComment-261804 Share on other sites More sharing options...
pocobueno1388 Posted May 26, 2007 Share Posted May 26, 2007 www.php.net/mail Quote Link to comment https://forums.phpfreaks.com/topic/52960-mailto/#findComment-261917 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.