其中sortup是表单提交过来的参数,topmoney并没有存在在数据库中.运行的时候提示59错误54   //对保存的内容进行处理
55 
56    $sortrank = AddDay($pubdate,$sortup);
57 $topMoney = $sortup*10
58//处理需要下载权限的软件
59    if($topMoney>0)
60    {
61        require_once(DEDEINC.'/memberlogin.class.php');
62        $cfg_ml = new MemberLogin();
63    //以下为正常情况,自动扣点数   
64
65
66     //没有足够的金币
67                if( $topMoney > $cfg_ml->M_Money || $cfg_ml->M_Money=='')
68                {
69                    $msgtitle = "你没有权限下载软件:{$arctitle}!";
70                    $moremsg = "这个软件需要 <font color='red'>".$topMoney." 金币</font> 才能下载,你目前拥71有金币:<font color='red'>".$cfg_ml->M_Money." 个</font> !";
72                    include_once(DEDETEMPLATE.'/plus/view_msg.htm');
73                    exit(0);
74                }    
75                //记录定单
76                if( !$dsql->ExecuteNoneQuery($inquery) )
77                {
78                    ShowMsg('记录定单失败, 请返回', '-1');
79                    exit(0);
80                }
81               //扣除金币
82                $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET money = money - $topMoney WHERE 83mid='".$cfg_ml->M_ID."'");
84 }