Help me analyze the exceptions

Source: Internet
Author: User
Help me analyze the errors. sortup is a form submission parameter, and topmoney is not in the database. 59 error 54 when running // processing the saved content 55 & nbsp; 56 $ sortrank = AddDay ($ pubdate, $ sortup ); 57 $ topMoney = $ help me analyze errors
Sortup is a form submission parameter, and topmoney does not exist in the database. when running, error 59 is displayed.

54 // process the saved content
55
56 $ sortrank = AddDay ($ pubdate, $ sortup );
57 $ topMoney = $ sortup * 10
58 // process the software that requires the download permission
59 if ($ topMoney> 0)
60 {
61 require_once (DEDEINC. '/memberlogin. class. php ');
62 $ pai_ml = new MemberLogin ();
63 // if the following conditions are normal, points are automatically deducted
64
65
66 // not enough gold coins
67 if ($ topMoney> $ pai_ml-> M_Money | $ pai_ml-> M_Money = '')
68 {
69 $ msgtitle = "You are not authorized to download the software: {$ arctitle }! ";
70 $ moremsg = "this software requires". $ topMoney. "gold coins can be downloaded. Currently, you have 71 gold coins:". $ money _ml-> M_Money! ";
72 include_once (DEDETEMPLATE. '/plus/view_msg.htm ');
73 exit (0 );
74}
75 // record the order
76 if (! $ Dsql-> ExecuteNoneQuery ($ inquery ))
77 {
78 ShowMsg ('Order record failed, please return ','-1 ');
79 exit (0 );
80}
81 // deduct gold coins
82 $ dsql-> ExecuteNoneQuery ("update' #@__ member' SET money = money-$ topMoney WHERE 83mid = '". $ pai_ml-> M_ID ."'");
84}

------ Solution --------------------
What type is your 83mid? If it is int type, you cannot add ''. remember to report an error.
------ Solution --------------------
It is not good to see that there is a missing one marked in red; the end of the semicolon

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.