prefix . "ajaxcf"; $did = $_POST['did']; $row = $wpdb->get_row("select * from $table_name where id=".$did.";"); echo "

Are you sure you want to delete this email from this list?

"; } // function for total email list function show_signedup_members() { global $wpdb; $table_name = $wpdb->prefix . "ajaxcf"; $myrows = $wpdb->get_results("select * from $table_name where name='email'"); echo "

Here is the Email List:

"; if($myrows) echo ""; else echo ""; foreach($myrows as $myrow) { echo ""; echo ""; echo ""; echo ""; } echo "
EmailDelete
There is no email yet.
".$myrow->value."
"; } // delete operation if($_POST['did']) { ?>
prefix . "ajaxcf"; $delete_status = $wpdb->query("delete from $table_name where id=".$did.";"); if($delete_status) { echo "

Email address has been Successfully Deleted!

"; } } // show the email list show_signedup_members(); ?>