I modified the script you gave me slightly, just to show the results from both arrays.
Code: Select all
<?php
echo '<p>Number of results for Filelist: '.mysql_num_rows($filelist).'</p>';
echo '<p>Number of results for FiletoPagelist: '.mysql_num_rows($FiletoPagelist).'</p>';
?>
I get 2 for the filelist, and 1 for filetopagelist (as it only seems to save 1 in to the table.)
Everything appears to work, except that when I check multiple check boxes, it does not save the results from the first boxes, only the last one on the list. Does that make since? Example: lets say I have 3 items.
Item 1
Item 2
Item 3
If I where to check the boxes before all three of them and hit save, it only saves the check infront of number three.
If I where to check one and two, it will save number two. Or if I check only number one, two, or three and none of the other two, it will save which ever I do check.
I assume this is now a problem with the insert command and not with the looping?
Thank you so much!