OK - I think the main problem was that I was trying to update data that hadn't been entered yet. So I added the script to the insert page in this fashion (after the insert to date statement):
//first i get the date_id from the recently entered record
$date_id = mysql_insert_id();
//then i perform the insert statement for the dates table
$result = @($sql,$connection) or die(mysql_error());
//then i go through each section value in the array and assign it to $sql3
foreach ($_POST['section_id'] as $value) {
$sql3 = "INSERT INTO $table_name8 (date_id, section_id)
values ($date_id, (section_id = '".$value."'))";
//then i perform the query
$result2 = @($sql3,$connection) or die(mysql_error());
}
Date is now being entered into the sections_x table but every value pair is date_id = 0 and section_id = 0 no matter what i enter.
Any more suggestions?
S./