Welcome Guest, Not a member yet? Register   Sign In
User ID data not showing.
#6

(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 
Reply


Messages In This Thread
User ID data not showing. - by kirasiris - 01-27-2018, 12:47 AM
RE: User ID data not showing. - by InsiteFX - 01-27-2018, 04:56 AM
RE: User ID data not showing. - by kirasiris - 01-27-2018, 06:37 PM
RE: User ID data not showing. - by InsiteFX - 01-27-2018, 05:02 AM
RE: User ID data not showing. - by InsiteFX - 01-28-2018, 05:17 AM
RE: User ID data not showing. - by kirasiris - 01-28-2018, 06:51 PM
RE: User ID data not showing. - by InsiteFX - 01-29-2018, 04:04 AM
RE: User ID data not showing. - by kirasiris - 02-01-2018, 10:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB