You could have a db schema like the following
users
- user_id
- username
- password
- last_login_date
user_profiles
- user_id
- fname
- lname
- profile_image
When you input a user into the users table, you also input a blank record into user profiles where user_id equals the last inserted id on the users table. You can get this with the mysql_insert_id() function.
Then you do a sql like
select profile_image from user_profiles where user_id = '$user_id'
That should be enough to get you started.







MultiQuote






|