Jump to content

Basic Question


elmas156

Recommended Posts

Hello everyone,

This question seems to me like it would be pretty basic but I haven't found the way to do it, maybe I'm looking in the wrong places...

 

Anyway, I'm trying to select from a 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 "username" from "users table" where "email" = $email.  The problem I'm having is trying to make "username" into a variable so that I can display it on the page to say something like: "Welcome $username".  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/121119-basic-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.