$sth = $db->prepare('INSERT INTO `imageCollection`(url,alt,title, .... и т.д.) VALUES(?,?,? ..... и т.д.)');
$sth->execute(array(
isset($_POST['url']) : $_POST['url'] ? null,
isset($_POST['alt']) : $_POST['alt'] ? null,
isset($_POST['title']) : $_POST['title'] ? null,
.... и т.д.
));