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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.