Great idea. Here's what I have at the moment:
Innitial page thad displays the original results with a button next to it to push data to another table:
<?
$query = mysql_query("SELECT username FROM TBL1 where memID = '$memID'");
list($username) = mysql_fetch_row($query);
?>
...some page content...
HISTORY [<? print $username ?>]
<table>
<?
$result = mysql_query("SELECT * FROM TBL1 where memID = '$memID'");
$query = mysql_num_rows($result);
mysql_close();
while ($myrow = mysql_fetch_row($result))
{
printf("<form method=POST action=\"process.php\"><input type=hidden name=memID value=\"memID\"><tr><td><input type=submit value=\"Process\"></td><td>%s</td><td>%s</td><td>%s</td></tr> <input type=hidden name=val1 value=". $myrow[1] . "><input type=hidden name=val2 value=". $myrow[2] . "><input type=hidden name=val3 value=". $myrow[3] . "></form>\n",
$myrow[1], $myrow[2], $myrow[3]);
$total += $myrow[4];
}
?>
</table>
process.php page:
<?
$update = ("insert into TBL2 values ('$val1', '$val2', '$val3', '$memID')");
$update = ("delete from TBL1 where val1 = '$val1'");
mysql_query($update);
?>
I think that's it...