getting the Profile page to show the signed in user’s data

When a user sign’s in to BUsingles, they are directed to their profile page which currently looks like the screenshot below:

Screen Shot 2015-03-15 at 15.12.50

However, the user’s details that they registered with are not shown like a normal profile page would include. Therefore, I added the following PHP code (screenshot below) to the profile.php. Which essentially gets the data from the users table in phpMyAdmin by using the user_id and then echo‘s out the username,firstname,lastname etc…

Screen Shot 2015-04-14 at 23.32.41

After this PHP code was implemented, when a user signs in they are directed to their profile page and then able to view their profile details. The screenshot below is an example of a profile page I created:

Screen Shot 2015-04-16 at 18.25.35

Below is a screen recording of me signing into my profile and viewing my profile page:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s