View Full Version : database and php


HeLpM3
07-13-2006, 01:34 AM
Hi
I 'm learning php and am almost done with build login system but will add more but right now i have the date placed in the table and was wondering how i would make a profile page for each users so i'm thinking if i get the information from table and assign it to a variable like the user name from table will be $user and so on if that posible could some provide me with a code that will get me started either it is from someone on forum or link i would love to have it so i can begin :D

Phillip
07-13-2006, 10:15 AM
Hi
I 'm learning php and am almost done with build login system but will add more but right now i have the date placed in the table and was wondering how i would make a profile page for each users so i'm thinking if i get the information from table and assign it to a variable like the user name from table will be $user and so on if that posible could some provide me with a code that will get me started either it is from someone on forum or link i would love to have it so i can begin :D


Hey can't give you the code as I have too much on but... Simple way to do it.

On your links, insert their is/userid from a database eg:

<a href="profile.php?viewid=$row['id']">$user['name']</a>

and then query it in the profile.php