PHP4 to PHP5 issue
| From: | Skip Evans | Date: | Mon, 05 Feb 2007 17:58:11 +0000 |
| Subject: | PHP4 to PHP5 issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-248362@lists.php.net to get a copy of this message | ||
Hey all,
I installed a new FreeBSD 6.0 server here in the office with PHP5. I moved over several sites we developed under PHP4, and all of those seem to be functioning perfectly, but I am getting an error on to sites, on PostNuke based and our dotProject system.
Both errors are the same, and here is the one from dotProject:
Fatal error: Call to a member function Execute() on a non-object in /usr/home/dotproject/public_html/classes/query.class.php on line 589
And the code:
$this->_query_id = $db->Execute($q);
Where $q is a pretty typical SQL statement.
What I'm wondering if there is an easy way to convert $q to an object type rather than a string to satisfy Execute? Or some other straightforward fix?
Thanks!
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=