|
我用php写的一个,选择性删除的code
- 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);
复制代码
输出item_selectids is 0,0,0,0,01
怎么是这样呢??只能删除一个pa_userid =0的数,别的都删除不了啊,
急 |
|