php删除记录
<?php #test.php if(isset($_POST['id2'])){ $sql="delete from table where id=".trim($_POST['id2']); $res = mysql_query($sql); if(!$res) die("SQL:{$sql}<br>Error:".mysql_error()); if(mysql_affected_rows() > 0){ echo "删除成功!<br>"; }else{ echo "查询失败<br>Error:".mysql_error(); } } ?>