Re: PHP4 to PHP5 issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your problem is the $db is NOT an Object.

$q is fine as-is.

Figure out why $db isn't getting be an object -- Probably because the
username/password and/or permissions to connect to the DB aren't set
up correctly.  Or you didn't copy over the DB tables PostNuke and
dotProject need.

On Mon, February 5, 2007 11:58 am, Skip Evans wrote:
> 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
> =-=-=-=-=-=-=-=-=-=
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux