Re: uploading...

From: Date: Wed, 28 Jun 2006 02:33:30 +0000
Subject: Re: uploading...
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-238759@lists.php.net to get a copy of this message
BBC wrote:
BBC wrote:
OK John.... I'm sorry if my question was not specific - The out put error was:
    "Fatal error: call to a member function an o non object in
/url/data.php
on line 34" - And the lines are: 34. $db->query("INSERT INTO products
$db isn't an object. Does it connect to the database without any problems?
Yes it does. I use it in other page and it can connect to the database properly. Are you suggesting me to change $db, Chris?
No, I'm suggesting you work out why it's not an object. Put this randomly through the page: echo "at line " . __LINE__ . "; db is " . gettype($db) . "<br/>"; and see where it goes from being an object to being something else. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#238759) next »