By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

Fatal error: Call to a member function mysql() on a non-object

P: 1
My script was working fine last night but when I tried it again earlier this is the error message I got:Fatal error: Call to a member function mysql() on a non-object in C:\Program Files\xampp\htdocs\cart\myshopping_index.php on line 55

What went wrong? Any help is greatly appreciated. Thanks
Aug 3 '07 #1
Share this Question
Share on Google+
1 Reply


code green
Expert 100+
P: 1,726
Fatal error: Call to a member function mysql() on a non-object in C:\Program
The member function mysql() is part of a class.
The function has been called outside the class, but the calling variable is not a object of the class.
mysql() is a poor choice for a function name, even within a class.
I can see that causing debug problems.
Aug 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.