function delete($rowid)
{
$rowids = implode(", ",$rowid);
$sql = "DELETE FROM pms WHERE id IN (".$rowids.")";
print $sql;
}
if (isset($_POST['submit']))
{
delete($rowid);
}
?>
<form method="post" action="test.php">
<input type="checkbox" name="rowid[]" value="1771367" /><br >
<input type="checkbox" name="rowid[]" value="345342" /><br >
<input type="checkbox" name="rowid[]" value="572347" /><br >
<input type="checkbox" name="rowid[]" value="902358" /><br >
<input type="checkbox" name="rowid[]" value="234654" /><br ><br >
<input type="submit" name="submit" />
</form>
警告:implode() [function.implode]: 第 4 行 C:\pub\test.php 中传递的参数无效 DELETE FROM pms WHERE id IN ()
我在这里做错了什么?在这里发疯。。