Jump to content

looking for tutorial or info


alwaysinit

Recommended Posts

When they register you store their data in the database. Then when you link to their profile you use something like:
view.php?id=213

id 213 would be the User ID in the Auto Increment column in your database.

You then use:
$result = mysql_query("SELECT * FROM users WHERE id = '$_GET[id]'");
$user = mysql_fetch_array($result);

Then you can make the layout of your profile page and simple use the array $user to display user specific data.
Lets say you have the following table columns: id, username, password, email, reg_date

If you wanted to view the username you could use:
<?php echo "Profile of $user[username]"; ?>

If you need more help look on google for "PHP MySQL Login Tutorial" and "PHP MySQL Dynamic Table"
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.