Okay, let's see what we have here.
For signup-xtra.php:
<?php
$list1 = '1';
$list2 = '2';
if($list==$list2){
$zrows = mysql_query("select id,cseq from $utable where list = '$list1' and email like '$email'",$link);
if(@mysql_num_rows($zrows)>0){
list($zid,$zseq)=mysql_fetch_row($zrows);
mysql_query("delete from $utable where id = '$zid'");
mysql_query("update $utable set user10 = '$zseq' where uid = '$uid';");
}
}
?>
And the script to view the results, once there are some:
<?php
// ** Be sure to place this script IN your ListMail directory
// read tracked seq #s from custom field 10 list 2
// Login to ListMail and browse to this script
include("./config.php");
include("./admin.php");
$islogged = islogged();
ini_set("max_execution_time","0");
if($islogged){$isadmin='true';} else { adminheader('Not logged in','Not logged in','x');echo "<center>You must <a href=login.php>login</a>."; exit; }
if ($isadmin == 'true'){
echo "<html><body><a href=./>Back to ListMail</a><br><br>";
// go through followups for list2
$rows = mysql_query("select subject,seq from $ftable where list = '2' order by seq;");
if(@mysql_num_rows($rows)>0){
echo "<table border=0 cellspacing=2 cellpadding=0><tr><td>Followup Seq & Subject</td><td>Upgrades</td></tr>";
while(list($subj,$seq)=mysql_fetch_row($rows)){
$urows = mysql_query("select count(*) from $utable where list = '2' and user10 = '$seq';");
if(@mysql_num_rows($urows)>0){
list($cnt)=mysql_fetch_row($urows);
} else $cnt = '0';
echo "<tr><td>$seq - $subj<br></td><td>$cnt<br></td></tr>";
}
echo "</table></body></html>";
}
}
?>
This is completely untested but I gave it a once-over.. :shock: Please let me know if you have any troubles.