prefix . "add_custom_link"; if($_POST['add_link']=='Y'): $id = $_POST['custom_link_id']; $title = $_POST['custom_link_title']; $parent = $_POST['custom_link_parent']; $href = $_POST['custom_link_href']; $results_new = $wpdb->get_results("SELECT id FROM $table_name where custom_link_id!='$_GET[edit]' AND id='$id'"); $check_counter=count($results_new); if($check_counter>0){ echo '
Id Already Exists! Link Id Must Be Unique.
'; } else{ $query = "update $table_name set id='$id', title='$title', parent_id='$parent', href='$href' where custom_link_id='$_GET[edit]'"; $results = $wpdb->query($query); ?>

get_row($query); ?>

" . __( 'Edit Custom Link', 'sumit_bansal' ) . " Add New"; ?>