Hi all,
I can't figure out why the following won't delete multiple rows from the mysql DB.
if ($_POST['delete_selected_article']){
foreach($_POST["delete_article_id"] as $k=>$v) {
echo "DEL $k = $v<br>";
$delete = mysql_query("DELETE FROM knowledgebase_articles WHERE knowledgebase_article_id = $v");
}
You will notice i have echoed the results. The result i get for this is correct except it wont delete the rows from the DB, not even one.
Any ideas to why this might be?
Cheers,
micmac