Jump to content

running php via cron (differences)


Guardian-Mage

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.