All pastes #65273 Raw Edit

Mine

public php v1 · immutable
#65273 ·published 2006-06-13 21:58 UTC
rendered paste body
$pic_id = explode(" ", $picture_id);?><?php$ImageDir = $ImageDir .$slash;//tell database which folder to displayswitch ($folder_location) {    case "centerpieces":      $getpic = mysql_query("DELETE FROM gallery_centerpieces WHERE image_id=$pic_id")  or die(mysql_error());      break;    	case "classicdecor":      $getpic = mysql_query("DELETE FROM gallery_classicdecor WHERE image_id=$picture_id")  or die(mysql_error());      break;        		case "dancefloors":      $getpic = mysql_query("DELETE FROM gallery_dancefloors WHERE image_id=$picture_id")  or die(mysql_error());          break;          		  case "deliverybouquets":      $getpic = mysql_query("DELETE FROM gallery_deliverybouquets WHERE image_id=$picture_id")  or die(mysql_error());          break;          		  case "propsandeffects":      $getpic = mysql_query("DELETE FROM gallery_propsandeffects WHERE image_id=$picture_id")  or die(mysql_error());         break;          		  case "stagedecor":      $getpic = mysql_query("DELETE FROM gallery_stagedecor WHERE image_id=$picture_id")  or die(mysql_error());          break;          		  case "themedecor":      $getpic = mysql_query("DELETE FROM gallery_themedecor WHERE image_id=$picture_id")  or die(mysql_error());          break;          		  case "tradeshows":      $getpic = mysql_query("DELETE FROM gallery_tradeshows WHERE image_id=$picture_id")  or die(mysql_error());          break;          		  case "weddings":      $getpic = mysql_query("DELETE FROM gallery_weddings WHERE image_id=$picture_id")  or die(mysql_error());          break;    	default:      echo "Sorry, but the location you selected was not correct.<br>";      echo "Please hit your browser's 'back' button and try again.";  }  ?>