db_delete()
db_delete($table, $cond, $d = NULL)
【功能】
删除记录,成功返回受影响的行数,失败返回 FALSE。
【参数】
$table:表名
$cond:条件
$d:$db 实例
【用例】
<?php
$conf = include "./conf.php";
include "./xiunophp/xiunophp.php";
$r = db_delete("user", array("uid"=>123));
if($r === FALSE) {
echo $errstr;
} else {
echo "删除成功";
}
?>