现在我可以使用 PHP dreamweaver 删除多个删除,但不是只能删除一条记录。有什么我一直想念的代码吗?
if(isset($_REQUEST['delete']))
{
$deleteCb = $_REQUEST['deleteCb'];
for($i=0;$i<count($deleteCb);$i++)
{
$final_id = $deleteCb[$i];
$q = "DELETE FROM tb_final WHERE final_id= ".$final_id;
mysql_query($q);
}
header("location:basic_multiple.php");
exit;
}