'1') { $ImageStr = implode("|", $NewImages); } else { $ImageStr = $NewImages[0]; } } else { $ImageStr = ""; } $q1 = "update yellow_posts set ResumeImages = '$ImageStr' where PostID='$_GET[id]' "; mysql_query($q1) or die(mysql_error()); } header("location:editlisting.php?id=$_GET[id]"); EXIT(); ?>