Your page with the attractions table should pass the id to the drop attractions page:
Print "<td><a href="."drop_attraction.php?id=".$infoA['id']."> <img src="."images/empty_trash-26.png"." width="."20"." height="."20"."></a></td>";
drop_attractions.php
include "config.php";
mysql_query("DELETE FROM Attractions WHERE id=".mysql_real_escape_string($_GET['id']));
header('Location: /dashboard-library.php');