Guardian-Mage Posted July 11, 2008 Share Posted July 11, 2008 http://globaltrainingedge.com/emailer/cron.emailer.phps My mass email tool is supposed to send out 40 emails every six minutes, and it does. This is how it sends them: 401-440 501-540 441-480 541-580 481-520 581-620 What the hell? Any ideas? relevant source //See how many emails have been sent $query2 = "SELECT `sent` FROM `email_tracker` WHERE `email`='$efsf9ffd' AND `success`='1' ORDER BY ABS(`id`) DESC LIMIT 1"; $execute2 = mysql_query($query2) or die(mysql_error() . "::$email"); $datarow2 = mysql_fetch_row($execute2); $sent = $datarow2[0]; $sent = explode("-",$sent); $sent = intval($sent[1]); $start = $sent + 1; $end = $sent + 40; $query = "SELECT `email`,`fname`,`lname` FROM `email_recepients` ORDER BY `email` DESC LIMIT $start,40"; $execute = mysql_query($query); My database http://globaltrainingedge.com/emailer/database.jpg Link to comment https://forums.phpfreaks.com/topic/114286-running-php-via-cron-differences/ Share on other sites More sharing options...
craygo Posted July 11, 2008 Share Posted July 11, 2008 try $start = $sent++; or $start = $sent+1; // nospaces Ray Link to comment https://forums.phpfreaks.com/topic/114286-running-php-via-cron-differences/#findComment-587692 Share on other sites More sharing options...
Guardian-Mage Posted July 11, 2008 Author Share Posted July 11, 2008 that shouldn't affect it in such a way should it? Link to comment https://forums.phpfreaks.com/topic/114286-running-php-via-cron-differences/#findComment-587706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.