I have a photo album, with a 'photos' field in database which has serialized data and is base 64 encoded. I can upload up to 21 photos at the same time for the album (multiple uploading). When trying to add new photos to the album on edit mode, I can't get the new $_FILES array to merge with the old array in the database. I want to update only the values that I have changed. So let's say I already had 2 images inside my album, I would like to add a 3rd image without losing the other 2 images. Here's my code:

Expand|Select|Wrap|Line Numbers

if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit') {

//select photo album and get photos and descriptions to be merged with new.