Pla can anyone help me with user profile update script.
when user log in with their email and password, the page will redirect user to my account section where user can update profile. how do i populate user details on update profile link.
I will appreciate any help.
Thanks
oluchan
0
Newbie Poster
Recommended Answers
Jump to PostAssuming you have all the data stored in a MySQL table you sould need something like this:
<?php //login to MySQL db $result=mysql_query("SELECT * FROM user_settings WHERE id='$_SESSION[user_id]'"); $settings=mysql_fetch_array($result); //now $settings has everything from the user_settings table as an array echo '<form action=...>'. ' <input type="text" name="real_name" …
Jump to PostI am not going to write your code for you - that's the sort of thing I get paid for :P - but I will help you do it yourself.
The way I would do it is as follows:
You will need
- A place to store the data …
All 6 Replies
humbug
5
Junior Poster in Training
oluchan
0
Newbie Poster
remp
0
Newbie Poster
humbug
5
Junior Poster in Training
BzzBee
5
Posting Whiz
humbug
5
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.