sorry, I guess I was just asking if it could be done in theory. Here is the code I have so far:
$workshop = $_REQUEST['workshop'];
$signup_list = $workshop . "_signup_list";
//insert all the records from the signup list into the master list
$query = "INSERT INTO master_rb_list (ID,fname,lname,address,zipcode,watershed,lat,lng,phone,email,btype,downspout,wateruse,refer,rights,org,workshop) SELECT ID,fname,lname,address,zipcode,watershed,lat,lng,phone,email,btype,downspout,wateruse,refer,rights,org $workshop FROM $signup_list";
$workshop is the variable that isn't in table A, but that I want to insert into table B when I insert table A's row.
Here is the error I'm getting from the above code:
Invalid INSERT query: Column count doesn't match value count at row 1
I know my code is not the way to do this, but I'm not sure what to do. thanks for your help.