I've got this code, anyone help on making it work...
while($fetch = mysql_fetch_assoc($query)){
$image_name = $fetch['image_name'];
$image_location = $fetch['image_location'];
<img src="'.$image_location.'"/>
<input name="image['.$image_id.'][6x7]" type="checkbox" value="'.$image_name.'" /> 6x4
<br />
<input name="image['.$image_id.'][8x9]" type="checkbox" value="'.$image_name.'" /> 7x5
}
Display on different page...
foreach($_POST['image'] as $image_id => $name) {
$uploaded[] = $name;
echo''.$name.'<br />';
foreach($name as $size => $size) {
$uploaded[] = $size;
echo''.$size.'<br />';
}
}
Input Script
mysql_query("INSERT INTO table VALUES('', '$name', 'size')");
I am uploading both image name and size (from the checkboxes 6x4, 7x5) I am able to input the size into the database but image name just says Array.
I know this is an obvious fix but I just can't get my head around the multiple arrays is the checkbox values!
Any help of feedback is welcome! HELP!