Hi Mike,
Copy the following code to a PHP file and browse to it:
<?php// place this script in your ListMail folder and browse to itinclude('./config.php');include('./admin.php');$from_list = '1';$to_list = '2';$demo = true; // set to false to run live// loop all users on from list$rows=mysql_query("select id,email from lm_users where list = '$from_list';");while(list($id,$em)=mysql_fetch_row($rows)){ // check if user id exists in hits table list($id2)=@mysql_fetch_row(mysql_query("select uid from lm_hits where uid = '$id';")); if($id2){ // exists, move to list if($demo){ echo "User $em found in hits and would be moved<br>"; } else { // update user mysql_query("update lm_users set list = '$to_list' where id = '$id';") or die(mysql_error()); echo "User $em moved from list $from_list to $to_list<br>"; } }}?>
Please let me know if you have any questions or troubles with the script.
Regards