I am in the process of teaching myself PHP/MySQL. So far i have a login script, a registration script, and a change password script.
I was wondering how a profile page should be set up.
I was thinking normal users can view all profiles. Admins can view/edit them. And then user A can edit user A's profile.
I have some ideas in mind but i was just wonderign what other people do.
I was thinking:
If the user is admin or user is the owner of profile then (
display profile with editable input forms displaying the information that is in the profile.)
If the user is not an admin or user is not owner of profile then (
display profile with the informtion of the profile jsut in echo form so it is un editable.)
I am jsut making this whole project jsut to learn as i go.