I have the follow code, it works great to delete 1 item in the database at a time. What I am trying to accomplish is deleting multiple items at a time...
<?
require ( "dbconnex.php" );
$posts_rs = $conn->Execute ( "SELECT ID, post_title, post_modified FROM wp_posts ORDER BY post_title DESC" ) or die ( $conn->ErrorMsg() );
?>
<? while ( ! $posts_rs->EOF ) { ?>
<input type="checkbox" id="<?=($posts_rs->Fields("ID"))?>" value="<?=($posts_rs->Fields("ID"))?>" /><?=($posts_rs->Fields("post_title"))?>
<br /><br />
<? $posts_rs->MoveNext(); } ?>
I had this before using a normal link to delete.php, which had this code:
<?
require ( "dbconnex.php" );
$ID = $_GET['ID'];
$deletepost = mysql_query("DELETE FROM wp_posts WHERE ID = '$ID' LIMIT 1");
$delpos = mysql_query($deletepost);
?>
Can someone help me with the delete.php portion so that all of the db entries that have their input box checked are deleted?