php中出现“Call to a member function Execute() on a non-object”的问题
2011-04-11 10:16
423 查看
没得办法,学艺不精,今天使用php+adodb进行数据库操作的时候出现“Call to a member function Execute() on a non-object”错误。搞了半天,终于晓得了,在php自定义函数中使用了全局变量,但是没有使用global语句在函数的开头进行声明。php使用变量是不需声明的,因此在函数中使用我想用的那个全局变量的时候,实际上默认创建了一个同名的局部变量,这样,出现错误就是很正常的了。嘿嘿,global一下,下次,你也记住哦~
相关文章推荐
- php中出现“Call to a member function Execute() on a non-object”的问题
- magento 第四章 出现 "Fatal error:Call to a member function load() on a non-object in \Abstract.php" 问题
- php错误:Call to a member function fetch_row() on a non-object
- Call to a member function cellExists() on a non-object /phpexcel/Classes/PHPExcel/Calculation.php on line 3241
- Wordpress PHP Fatal error: Call to a member function get() on a non-object 解决方法
- 【TP3.2】Call to a member function display() on a non-object问题的解决
- Call to a member function display() on a non-object问题的解决
- ECmall错误:Call to a member function get_users_count() on a non-object in /home/dmg/wwwroot/includes/ecapp.base.php
- 解决 ECMall 错误 Call to a member function get() on a non-object in frontend.base.php
- 常见的magent问题系列二--Fatal error: Call to a member function toHtml() on a non-object in ../../Layout.php
- Fatal error: Call to a member function getData() on a non-object in /data/php/framework/exts/zii/wid
- Thinkphp 出现 Call to a member function assign() on a non-object
- Fatal error: Call to a member function fetch_array() on a non-object问题的解决办法
- ThinkPHP Call to a member function display() on a non-object问题的解决
- Fatal error: Call to a member function fetch_array() on a non-object in E:\wamp\www\shop\index.php
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- :( Call to a member function Table() on a non-object 错误位置
- dedecms中自定义模型遇到错误Fatal error: Call to a member function GetInnerText() on a non-object
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- call to a member function display() on a non-object