In php, the question "CalltoamemberfunctionExecute () onanon-object" appears? There is no way to do it. I am not very good at learning. today, when I use php + adodb for database operations, the "CalltoamemberfunctionExecute () onanon-object" error occurs. After a long time, I finally realized that the "Call to a member function Execute () on a non-object" issue appeared in the php user-defined function.
? There is no way to solve this problem. today, when using php + adodb for database operations, the "Call to a member function Execute () on a non-object" error occurs. After a long time, I finally realized that global variables were used in php user-defined functions, but they were not declared at the beginning of the function using global statements. Php does not need to declare variables. Therefore, when using the global variable I want to use in the function, a local variable with the same name is actually created by default, the error is normal. Hey, global. next time, remember ~
?
Http://hi.baidu.com/is8888/blog/item/d5663811e8829519b9127bbf.html