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

Call to a member function() on a non-object

P: 1
I am calling getPupil function, but its showing me a call to a member function getPupil()on a non object
Nov 17 '11 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 431
Call to a member function() on a non-object <--- hint
If I do this:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     $something -> getPupil();
  3. ?>
I am getting same error. From my example it is obvious that
"$something" is not an object
Nov 17 '11 #2

Post your reply

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