幫忙分析下哪裡異常
來源:互聯網
上載者:User
幫忙分析下哪裡錯誤
其中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 = "這個軟體需要 ".$topMoney." 金幣 才能下載,你目前擁71有金幣:".$cfg_ml->M_Money." 個 !";
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}
------解決方案--------------------
你的83mid 是什麼類型 的? 是int類型的話 不能加‘’吧 記得會報錯
------解決方案--------------------
是不太好看到 紅色標出來了 少了個 ; 分號結尾