0

Hi, i have already made a user registration page and log in pages but i need to know how i can make it possible for other people to view profiles from other users on my site.

3
Contributors
3
Replies
6
Views
7 Years
Discussion Span
Last Post by nick3592
0

Create a profile.php page.

If you've got user hyperlinks - they should have the user's id as part of the querystring. This is then processed from the $_GET variable and data is taken from the DB and displayed.

A hashed "confirm" parameter may be useful to prevent users from messing with the querystring.

Simple.

0

what ardav's trying to tell you is that you can have a page that will display users on your site with there picture displayed.the link on the picture can be something like

yourdomain.com/profile.php?userid=12456

where the userid will be the id of the person in your database
and once this is clicked there profile will be shown via get using

$_GET['userid'];

and via a sql statement you generate the user using the userid. hope that helps and don't orget the hashing he talked about so as to prevent sql injection. shalom shalom

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.