|
楼主 |
发表于 2004-9-10 11:37:13
|
显示全部楼层
[code:1]
echo "<tr><td><input type=\"checkbox\" name=\"item_selects[]\" value=\"$pa_userid\"></td>
$item_selects = $_POST['item_selects'];
$item_selectids = implode(",", $item_selects);
echo "item_selectids is $item_selectids";
mysql_select_db("article20");
$result = mysql_query("delete from pa_address_book where pa_userid IN ($item_selectids)", $link);
[/code:1]
输出item_selectids is 0,0,0,0,01
怎么是这样呢??只能删除一个pa_userid =0的数,别的都删除不了啊,
急 |
|