Re: uploading...

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

 



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/

--
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