Results 1 to 2 of 2

Thread: [RESOLVED] Call to a member function on a non-object

Threaded View

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Resolved [RESOLVED] Call to a member function on a non-object

    What does this mean? Ive included a file inside my php and im trying to access a function inside of it..not sure whats goin on..

    edit*
    figured it out.

    When including a file, you need to initiate a new class like so
    PHP Code:
    inc ('includes/class.myclass.php');
    $myquery = new myclass(); 
    Last edited by |2eM!x; Nov 16th, 2005 at 05:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width