Hi,
The situation:
I'm making a row that has values out of two arrays. These two arrays have a different count(). The $place_id[$i] from the second array needs to be attached on $id[$j] from the first array.
Like now: when I check 2 $checkbox_upload_id's and the first row has also checked checkbox_place_id[0] and the second row has checked checkbox_place_id[1] both rows get checkbox_place_id[0] and checkbox_place_id[1]. While this shoot be row1 checkbox_place_id[0] and row2 checkbox_place_id[1]
Any one an idea? Thanks for now...
//First array...
for($j=0;$j<count($name);$j++) {
echo("<tr><td><input type=\"checkbox\" name=\"checkbox_upload_id[$j]\" value=\"$id[$j]\"></td><td>$title[$j]</td><td>$head[$j]</td><td>$price[$j]</td><td>$a_price[$j]</td><td>$discount[$j]</td>");
//Second array...
for($i=0;$i<count($place);$i++) {
echo("<td valign=\"bottom\">$place_name[$i]<input type=\"checkbox\" name=\"checkbox_place_id[$i]\" value=\"$place_id[$i]\"></td>");
}
echo("</tr>");
}