'0') { $a1 = mysql_fetch_array($r1); //delete the file unlink("banners/$a1[BannerFile]"); //delete the stats $q1 = "delete from yellow_stats where BannerID = '$_GET[BannerID]' "; mysql_query($q1) or die(mysql_error()); $q1 = "delete from yellow_banners where BannerID = '$_GET[BannerID]' "; mysql_query($q1) or die(mysql_error()); } } header("location:banners.php"); ?>