It looks like this kind of script can also move a subscriber from one list to another list after the first sequence is finished. Am I right on this?
I'd like to be able to have my broadcasts go out to only those users who have finished the basic followup sequence (to avoid annoying anyone with 'excessive' marketing), and the easiest way would be to have the subscribers of the basic sequence moved to a 'broadcast list'.
Just to make sure I understand what to do here, it looks like I would use the daily-xtra.php script to do a MySQL update on all subscribers to list #1 (the basic sequence), last followup, and edit them to be the first followup on the broadcast list (list #2).
So, here is the edited code as I have it:
<?php /* Start Switch List */ // set list to move users from $oldlist= '1'; $newlist= '2'; // get last followup on the list list($lastfup)=mysql_fetch_row(mysql_query("select seq from lm_follow where list = '$oldlist' order by seq desc limit 1",$link)); // increment by one to match users who are the end of the sequence$lastfup = $lastfup + 1; // get first followup seq and delay list($firstfup,$firstdel)=mysql_fetch_row(mysql_query("select seq,del from lm_follow where list = '$newlist' order by seq limit 1",$link)); // update users mysql_query("update lm_users set cseq = '$firstfup', cdel = '$firstdel', list = '$newlist' where list = '$looplist' and cseq = '$lastfup'",$link); /* End Switch List */ ?>
Do I have it edited correctly?
- Alan