I now how to make a profile but how to make for every user when he logs to view button my profile and takes them to their profile.

You would set up your button to point to something like "MyProfile.php" and when the user is logged in and lands on that page the information that is presented to them can be specific to just that user with a simple query to the database using session variables to retrieve the info for that user. For example:

$sql=mysql_query("SELECT * FROM users WHERE id='$_SESSION[user_id]'");
while($row=mysql_fetch_assoc($sql) {
$user=$row['user_name']; }

echo ' Welcome '.$user.' ';

Of course you can have it look up whatever info you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.