imagename == '1.jpg', post_id == 9, date_upload = "17-12-2017";
imagename == '2.jpg', post_id == 9, date_upload = "17-12-2017";
imagename == '3.jpg', post_id == 0, date_upload = "17-01-2018";
UPDATE `images` SET `post_id` = 0 WHERE `post_id` = 9;
UPDATE `images` SET `post_id` = 9 WHERE `imagename` IN(implode(',', $_POST['images']))
imagename == '1.jpg', post_id == 9, date_upload = "17-12-2017";
imagename == '2.jpg', post_id == 0, date_upload = "17-12-2017";
imagename == '3.jpg', post_id == 9, date_upload = "17-01-2018";