'0') { $a1 = mysql_fetch_array($r1); //delete the file if($a1[logo]!="") { unlink("yellow_images/$a1[logo]"); } if($a1[ResumeImages]!="") { $OldImages = explode("|", $a1[ResumeImages]); foreach($OldImages as $list) { unlink("yellow_images/$list"); } } //delete the post $q1 = "delete from yellow_posts where PostID = '$_GET[id]' "; mysql_query($q1) or die(mysql_error()); } } header("location:managelisting.php"); ?>