Questions about "call to a member function Execute () on a non-object" appear in PHP

Source: Internet
Author: User
"Call to a member function Execute () on a Non-object" appears in PHP

There is no way, not to the fine, today when using PHP+ADODB for database operations, "call to a member function Execute () on a non-object" error. For a while, I finally know that the global variables are used in PHP custom functions, but we do not declare them at the beginning of the function with the global statement. PHP uses variables that are not declared, so when I use the global variable I want in the function, I actually create a local variable with the same name by default, so it's normal to have an error. Hey, global a bit, next time, you also remember Oh ~

?

Http://hi.baidu.com/is8888/blog/item/d5663811e8829519b9127bbf.html

  • 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.