Jump to content

php profile page

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic

#1
Flezria

Flezria

    Learning Programmer

  • Members
  • PipPipPip
  • 55 posts
Hello :)

I want to make this "profile page" for my website.
the idea with it is that you can enter some things about yourself like age, name etc, even a profile picture.
Im really blank here, anyone could point me in the right direction.
Some tutorial or guides would be cool :)

Thanks guyse :D

#2
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
You need a MySQL Database
A Registrtion Section
Login
Session
And you need to know how to update data in mysql databases :)

Happy Googleing.

#3
Flezria

Flezria

    Learning Programmer

  • Members
  • PipPipPip
  • 55 posts
ive done registeration and login. i know how to update and i know how to make mysql.
I just need to know how i can make it so i dont have to make a file to everyone who register.

#4
abdul.gafur

abdul.gafur

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
You just need to gathering information about user that login at your website.

If user login, we can get id of user, with that id we can get profile of the user from database and display it.

Start to create the php file. if you find problem, we can discuss later. Take heart.

#5
Flezria

Flezria

    Learning Programmer

  • Members
  • PipPipPip
  • 55 posts
Thanks alot, i will take a look on it :)

#6
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Doing a profile page is pretty simple.. Just insert textboxes to registration form with fields that you want.. for example..
Username<br />
<input type="text" name="username" /><br />
Email<br />
<input type="text" name="email" />

Then add those fields to database and just display them in your profile page. :)

#7
Flezria

Flezria

    Learning Programmer

  • Members
  • PipPipPip
  • 55 posts
Hey jaan, thanks for your answer :)
I know how to do it, i will do like adding fields to my db and then just row them out.
But if im making ONE page and row the information out, other users cant view MY information, but they will get their own information. Can you see my problem??
I will like to know how every user can view others profile, thanks :)

#8
abdul.gafur

abdul.gafur

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
Select all id and name of users, next display them as a link.

----------------------------------------------------
for each id do :
$id = ...; //get id from database
$name = ...; ////get name from database
<a href="detailprofile.php?id=$id">$name</a>
------------------------------------------------------

and at detailprofile.php
you get id with $_GET, and this time, you select all information of user with that id, display it

*** I assume that you dont have problem with syntax

#9
Flezria

Flezria

    Learning Programmer

  • Members
  • PipPipPip
  • 55 posts
Thanks for your answer :)
i know the syntax, so shouldnt be a problem.
I will try your way, and see what happens :D
Thank again :)

#10
Guest_Jaan_*

Guest_Jaan_*
  • Guests
@abdul yea you are correct..

you should have this url like this: useinfo.php?id=1
for example ofc..
and this id is 1 so you have to order information about a field which contains id 1. :)

#11
Flezria

Flezria

    Learning Programmer

  • Members
  • PipPipPip
  • 55 posts
Thanks alot :)

I think i understand it now :)

#12
Guest_Jaan_*

Guest_Jaan_*
  • Guests
You're welcome :)