perezf Posted October 30, 2007 Share Posted October 30, 2007 How can i call one value out of a database for instance i have these fields in my database memberid, emailaddress, password, firstname, lastname, gender I have the emailaddress now i want to know how to print the firstname giving the email address Quote Link to comment Share on other sites More sharing options...
SammyGunnz Posted October 30, 2007 Share Posted October 30, 2007 Wait...did I understand your question right? <?php $query = $db->query("SELECT `firstname` FROM `table` WHERE `emailaddress`='$user[emailaddress]'"); ?> Quote Link to comment Share on other sites More sharing options...
perezf Posted October 30, 2007 Author Share Posted October 30, 2007 yes thank you 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.