www.webdeveloper.com
Results 1 to 3 of 3

Thread: Selecting a user email from database

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    102

    Question Selecting a user email from database

    Hello,

    I am trying to figure out the correct code to select a certain user's email from my database on a page other than the page where the email was provided. For example: The user will enter their information on the registration page then once their payment is confirmed through paypal I am sending them a confirmation email in my thank you page using the mail function. What I cant figure out is how to select the correct email without having a variable to use in the WHERE portion of my query line. I have tried using SESSIONS but I keep getting an undefined variable error. If anyone can help I would be very grateful.

  2. #2
    Join Date
    Jan 2010
    Posts
    6
    if the email is entered in the database, can't you just take it from the database again?

  3. #3
    Join Date
    Feb 2012
    Posts
    102
    Quote Originally Posted by yortzec View Post
    if the email is entered in the database, can't you just take it from the database again?
    Yes you could but if there are multiple emails in the database there has to be a criteria for selecting the correct one. This is not for the page where the email was originally posted. Its ok though I have decided to go about it another way.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles