Nirbhay Posted May 14, 2009 Share Posted May 14, 2009 HI All, can any one help me out I am getting "Cannot use object of type __PHP_Incomplete_Class as array in " this error ,after debugging I cld knw is that it is due to session varibale that I am using. Thanx in advance for any kind of help.. Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 14, 2009 Share Posted May 14, 2009 You need to include the class you used to store in the session variable *PRIOR* to the call of session_start(). Link to comment Share on other sites More sharing options...
Nirbhay Posted May 14, 2009 Author Share Posted May 14, 2009 thanx for the reply, actually I am a bit new in Php field can u plz show a small demo code how to crate such class. thanx Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 14, 2009 Share Posted May 14, 2009 I didn't say create a class. What value does your session variable hold - the one that's causing this error? Link to comment Share on other sites More sharing options...
Nirbhay Posted May 14, 2009 Author Share Posted May 14, 2009 the session variable is having three value like $_SESSION['user']['user_id'], $_SESSION['user']['user_name'], $_SESSION['user']['system_id'], I need to access this values for passing it to sql querry. Link to comment Share on other sites More sharing options...
Recommended Posts