Re: uploading...
| From: | Richard Lynch | Date: | Wed, 28 Jun 2006 03:21:52 +0000 |
| Subject: | Re: uploading... | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238762@lists.php.net to get a copy of this message | ||
On Tue, June 27, 2006 9:23 pm, 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?
In the other page it might be an object.
It ain't in this one. That's what the error message SAYS.
You'll have to backtrack $db to see where it's not what you expect,
and reason out WHY it's not an object, in THIS script, even though it
worked fine elsewhere.
--
Like Music?
http://l-i-e.com/artists.htm