Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
2016-08-16
function delete($table, $where = null) {
$where = $where == null ? null : "where " . $where;
$sql = "delete from $table {$where}";
mysql_query ( $sql );
return mysql_affected_rows ();
}
要删除管理员那里,我把sql 语句 里$table的括号去掉了就好了
$where = $where == null ? null : "where " . $where;
$sql = "delete from $table {$where}";
mysql_query ( $sql );
return mysql_affected_rows ();
}
要删除管理员那里,我把sql 语句 里$table的括号去掉了就好了
2016-08-15