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 Link to comment https://forums.phpfreaks.com/topic/75310-solved-mysql-query-help/ 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]'"); ?> Link to comment https://forums.phpfreaks.com/topic/75310-solved-mysql-query-help/#findComment-380879 Share on other sites More sharing options...
perezf Posted October 30, 2007 Author Share Posted October 30, 2007 yes thank you Link to comment https://forums.phpfreaks.com/topic/75310-solved-mysql-query-help/#findComment-380889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.