All pastes #766990 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-11-09 11:18 UTC
rendered paste body
<?php if(isset($_GET['imageid'])){$imageid = $_GET['imageid'];require_once($_SERVER['DOCUMENT_ROOT']."/database/mysql.php");mysql_select_db($database_tmw, $tmw);$delete_photo = "DELETE FROM photos WHERE id='$imageid'";mysql_query($delete_photo, $tmw) or die(mysql_error());}$gotoprevious = $_SERVER['HTTP_REFERER'];//header('Location: $gotoprevious');?>