Code:
{
$sql = "DELETE FROM poly_links WHERE id=$id";
$result = mysql_query($sql);
echo "News Deleted.";
}
I bet $id hasn't been defined when you set $sql.
You can verify this by putting:
Code:
die("SQL QUERY: " . $sql);
after the $sql assignment. If it resolves to:
DELETE FROM poly_links WHERE id=
then that's not valid SQL.
Grumpy's quoting suggestion is good practice.