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"? Link to comment https://forums.phpfreaks.com/topic/270513-how-to-select-an-entire-row/ 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? Link to comment https://forums.phpfreaks.com/topic/270513-how-to-select-an-entire-row/#findComment-1391382 Share on other sites More sharing options...
mostafatalebi Posted November 10, 2012 Author Share Posted November 10, 2012 yes the address is unique Link to comment https://forums.phpfreaks.com/topic/270513-how-to-select-an-entire-row/#findComment-1391443 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? Link to comment https://forums.phpfreaks.com/topic/270513-how-to-select-an-entire-row/#findComment-1391939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.