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
php profile page
Started by Flezria, Mar 12 2010 07:56 AM
11 replies to this topic
#1
Posted 12 March 2010 - 07:56 AM
|
|
|
#2
Posted 12 March 2010 - 09:35 AM
You need a MySQL Database
A Registrtion Section
Login
Session
And you need to know how to update data in mysql databases :)
Happy Googleing.
A Registrtion Section
Login
Session
And you need to know how to update data in mysql databases :)
Happy Googleing.
#3
Posted 12 March 2010 - 10:55 AM
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.
I just need to know how i can make it so i dont have to make a file to everyone who register.
#4
Posted 12 March 2010 - 07:36 PM
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.
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
Posted 13 March 2010 - 02:22 AM
Thanks alot, i will take a look on it :)
#6
Guest_Jaan_*
Posted 13 March 2010 - 01:30 PM
Guest_Jaan_*
Doing a profile page is pretty simple.. Just insert textboxes to registration form with fields that you want.. for example..
Then add those fields to database and just display them in your profile page. :)
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
Posted 13 March 2010 - 02:11 PM
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 :)
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
Posted 13 March 2010 - 07:30 PM
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
----------------------------------------------------
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
Posted 14 March 2010 - 12:57 AM
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 :)
i know the syntax, so shouldnt be a problem.
I will try your way, and see what happens :D
Thank again :)
#10
Guest_Jaan_*
Posted 14 March 2010 - 02:49 AM
Guest_Jaan_*
@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. :)
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
Posted 14 March 2010 - 09:49 PM
Thanks alot :)
I think i understand it now :)
I think i understand it now :)
#12
Guest_Jaan_*
Posted 15 March 2010 - 08:32 AM
Guest_Jaan_*
You're welcome :)


Sign In
Create Account


Back to top









