(01-28-2018, 05:17 AM)InsiteFX Wrote: One of the most common fatal errors in PHP is the “call to a member function of anon-object” type.
This occurs whenever a method is called on anything other than an object (usually null).
Check to make sure that you are getting a value passed for you users ID.
Here is a list of the returned query results.
PHP Code:
/**
* -----------------------------------------------------------------------
* Return Object's:
* result() = $row->title;
* row() = $row->title;
*
* Return Array's:
* result_array() = $row['title'];
* row_array() = $row['title'];
* -----------------------------------------------------------------------
*/
It sounds like your users ID is not being passed to the method.
I still get the same error :/ . I will tell you that three columns in my users table can be NULL (avatar_img, cover_img, occupation ,etc) but so far all the users found in that table have everything filled in. The only column which I believe is empty in both users(currently two resgistered users) is the e-mail but I dont even plan to display that value in the front end.
Thanks man for helping. I will try to post the same question on StackOverflow ; some of them may know as well.
By the way the helper you provided to me is pretty cool. Thnaks.
NOTE: I may get back(again; if I dont get it fixed) later on.
I do Front-End development most of the time