mostafatalebi Posted November 9, 2012 Share Posted November 9, 2012 Hello I want to add a edit-profile page to my site. To do this I make a session variable to store the email of the logged-in user when he logs in. Later when the user clicks on the edit-information page's link, it goes through theform. I want to add to all form's inputs including firstname, lastname, about me, phone etc. the user's current information. So how I can query (using PHP) a row entirely when I have only one element of it which is "email"? Quote Link to comment Share on other sites More sharing options...
requinix Posted November 9, 2012 Share Posted November 9, 2012 SELECT * FROM table WHERE email = "the email address" The address is unique, right? Quote Link to comment Share on other sites More sharing options...
mostafatalebi Posted November 10, 2012 Author Share Posted November 10, 2012 yes the address is unique Quote Link to comment Share on other sites More sharing options...
fenway Posted November 13, 2012 Share Posted November 13, 2012 I'm sorry, you're storing *what* in the session variable? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.