Heim  >  Artikel  >  Backend-Entwicklung  >  帮忙分析下哪里异常

帮忙分析下哪里异常

WBOY
WBOYOriginal
2016-06-13 10:04:28855Durchsuche

帮忙分析下哪里错误
其中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类型的话 不能加‘’吧 记得会报错
------解决方案--------------------
是不太好看到 红色标出来了 少了个 ; 分号结尾

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn