gecko Posted April 10, 2008 Share Posted April 10, 2008 Hi, I am trying to create something similar to this : if (!empty($_GET["surname"]) && !empty($_GET["firstname"]) && !empty($_GET["phone"])) BUT, the difference is I want to take the value for "surname" for example, from the database. Thus, if the "surname" field is empty, then .....whatever. I hope I have made myself clear enough. Basically, I want the code to be on a page called logged_in.php, so that when a new user logs in, and they haven't yet submitted their security question/answer(when the fields are BLANK) , a message is echoed to the screen saying "you haven't set a security question and answer yet........do you want to do it now.etc etc" I have sorted the last part out; I just need the bit shown above!! I know how to retrieve the value from a variable passed from a previous page, of course; I just need someone to modify what is shown above! Many, many thanks. Link to comment https://forums.phpfreaks.com/topic/100493-retrieving-value-from-database/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.