select ( "select id,image from special_gifts where id=" . $_GET ['id'] ); if ($row ['image'] == "") unlink ( "../uploads/" . $row ['image'] ); $row = $db->get_row ( $r, 'MYSQL_BOTH' ); $db->delete ( "delete from special_gifts where id=" . $row ['0'] ); print "";