elmas156 Posted August 24, 2008 Share Posted August 24, 2008 Ok, before anyone says anything... i know that I posted this in the MySQL help section but then I thought... "Is this really a MySQL question or is it a PHP question because my goal is to actually make info from a MySQL field into a variable?" Anyway, here is my question: I'm trying to select from a MySQL database a certain piece of information and display it on the page. For example: After a user has signed up and logged in to the website, I want to select "firstname" from "usertable" where "email" = $email. The problem I'm having is trying to make "firstname" into a variable so that I can display it on the page to say something like: "Welcome $firstname". I've gone over the database tutorial on here but I didn't see anywhere that it covered taking a single field from a table and turning it into a variable. Any suggestions? Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/121124-making-mysql-field-a-variable/ Share on other sites More sharing options...
wildteen88 Posted August 24, 2008 Share Posted August 24, 2008 Thread locked, do not double post. http://www.phpfreaks.com/forums/index.php/topic,213415.msg973292.html#msg973292 Link to comment https://forums.phpfreaks.com/topic/121124-making-mysql-field-a-variable/#findComment-624415 Share on other sites More sharing options...
Recommended Posts