Ineternet Explorer RED X CURSE
Posted: Fri Aug 31, 2007 9:55 am
Cant seem to get rid of the red X and its still holding onto the img src file cause havoc when you try to delete image from page. Any suggestions?
Any other code that you may need please let me know and i will post, Thanks for your help!!!
Any other code that you may need please let me know and i will post, Thanks for your help!!!
Any other code that you may need please let me know and i will post, Thanks for your help!!!
Code: Select all
<?php
if(array_key_exists('deleteImage', $_POST)) {
if ($_POST['deleteImage'] == "Delete Map") {
unlink('/Inetpub/wwwroot/homes/html/images/browse/maps/'. $ID . '.jpg');
unlink('/Inetpub/wwwroot/homes/html/images/browse/maps/'. $ID . '-TH.jpg');
} elseif ($_POST['deleteImage'] == "Delete Logo") {
unlink('/Inetpub/wwwroot/homes/html/images/browse/logos/'. $ID . '.jpg');
unlink('/Inetpub/wwwroot/homes/html/images/browse/logos/'. $ID . '-TH.jpg');
} elseif ($_POST['deleteImage'] == "Delete Features List") {
$query = "SELECT * from psh_communities WHERE ID = $ID";
$result = mysql_query($query);
$row = mysql_fetch_row ($result);
$query = "UPDATE psh_communities SET features = 'NULL' WHERE ID = $ID";
$result = mysql_query($query);
unlink('/Inetpub/wwwroot/homes/html/browse/features/'. $row[10]);
} elseif ($_POST['deleteImage'] == "Delete Brochure") {
$query = "SELECT * from psh_communities WHERE ID = $ID";
$result = mysql_query($query);
$row = mysql_fetch_row ($result);
$query = "UPDATE psh_communities SET brochure = 'NULL' WHERE ID = $ID";
$result = mysql_query($query);
unlink('/Inetpub/wwwroot/homes/html/browse/brochures/'. $row[8]);
} elseif ($_POST['deleteImage'] == "Delete Banner") {
unlink('/Inetpub/wwwroot/homes/html/images/browse/banners/'. $ID . '.jpg');
}
}
?>Any other code that you may need please let me know and i will post, Thanks for your help!!!