Please check variable $clast60 and your sql table named campaign.
$sql = "select status,curdate(),max_emails,last60_flag,aol_flag,open_
+flag,yahoo_flag,hour(schedule_time),minute(schedule_time),mid,redirec
+t_domain,campaign_nam +e from campaign where campaign_id=$campaign_id
+";
$sth = $dbh->prepare($sql); $sth->execute();
($status,$schedule_date,$max_emails,$clast60,$aolflag,$openflag,$yahoo
+_flag,$sho +ur,$smin,$old_mid,$old_dname,$cname) = $sth->fetchrow_arr
+ay();
I agree with the anonymous monk concerning red flags, this code has far too many flaws to justify anything else than a complete rewrite.
Better don't tell us your website or it'll be hacked within 10 minutes.
|