时间:2021-07-01 10:21:17 帮助过:3人阅读
include("../inc/inc.php");
islogin();
$Db = new Db();
?>
public.php
function deletes()
{
$id = PostGet('id');
$aid =PostGet('aid');
$cn = urlencode(PostGet('cname'));
if( !is_numeric( $id ) )
{
exit;
}
else
{
$Db = new Db();
try{
$Db->query("Delete from cn_loupan_city where id='$id'");
MessAge('操作成功','type.php?aid='.$aid.'&cname='.$cn);
}catch( Execption $e){
MessAge('操作失败!');
}
$Db->close();
}
}
本站原创转载注明 www.111cn.cn
http://www.bkjia.com/PHPjc/445018.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445018.htmlTechArticlephp列出数据再用js 删除数据 ?php include(../inc/inc.php); islogin(); $Db = new Db(); ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xht...