Jump to content

Since i've failed this so many times...


Zoofu

Recommended Posts

How about take an idea from the SMF forum software that PhpFreaks uses. All the member names that are displayed anywhere on any of the pages are links that when clicked take you to the profile page of that member. For example, your member name is the following link - http://www.phpfreaks.com/forums/index.php?action=profile;u=85553

Link to comment
Share on other sites

I am going to give you a simple User Management System

 

1) Create a table with: userid, username, email, address ( You need teh first 2, the rest you can add/remove to your likings)

 

2) Create a Registration form and just insert the info into DB

 

3) Make a loggin script (Check the username and password provided from the form to see if the user actually exists)

If a user exists, fetch the userid from the Database and put it in the link.

 

Something to get you started:

Use if mysql_rows.

 

And the link would be:

www.yoursite.com/profile.php?id=userid

 

4) Make a profile page, DONT PUT ANY DB stuffs yet.

Just design it to your needs. Where you want to put the user's details put a default value. For exemple where you want to display his username, put username.

 

And when your all done, Put this at the top:

<?php 
$userid = $_GET['id'];
?>

This will get the user id.

And make a while loop to fetch the rest of the information, where userid = userid.

 

 

I hope I was clear...

 

If you need more help,

dont hestitate

Link to comment
Share on other sites

The purpose of the PHP Coding Help forum is for programmers to help other programmers with their code and with php programming questions -

Do you need help with some code you wrote? Ask here! We'll get you the answers!

 

If you want someone to write code for you, you need to post in the PHP Freelancing forum section - http://www.phpfreaks.com/forums/index.php/board,8.0.html

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.