I was wondering how I could go about turning this add entry link in to a delete entry link? Any help would be appreciated.
if (CAN_EDIT){ echo '<i>'.$announcements[$x]['page_edit']='<a href="index.php?id='.$announcements[$x]['page_id'].'&act=edit">edit entry</a></i><br />'; if ($announcements[$x]['page_edit']>0){} } I understand about using
mysql_query DELETE FROM (table name) WHERE (item name) I am just not sure how to implement it and make it a link.
id='.$announcements[$x]['page_id'].'somysql_query delete from (table) WHERE id = $_GET['id']'<i>'.$announcements[$x]['page_edit']='<a...'be'<i>'.$announcements[$x]['page_edit'].'<a...'?