query($wpdb->prepare("delete from ".AM_HILI_LINKS." where link_id=%d",$_POST['link_id'])); echo "done"; exit(); } //change the status of a link (active/not active) request from links list (jQuery request) if ($_POST['act']=="status" and isset($_POST['link_id']) and isset($_POST['active'])){ $wpdb->query($wpdb->prepare("update ".AM_HILI_LINKS." set active='$_POST[active]' where link_id=%d",$_POST['link_id'])); echo "done"; exit(); }