Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Advance SQL

Explorer ,
Jan 13, 2007 Jan 13, 2007

Copy link to clipboard

Copied

Ok I need to join two tables which is easy to do, but this is for an internal email prograM I am making. Now I joined the databases together but what I need to do is set it so only the user that is logged in can view the messages that where sent to them. Also I need to substitute the senders id for the username that sent the message. Here is my database structure:\
email_email | authorize
--------------------------------
eml_senderid -> id
eml_recipient -> id

Now I set the recipent id to a session variable I declared earlier so that only the message for that user is displayed. Now what do I do to set the senders id to their username?
I am using PHP and mySQL.
TOPICS
Server side applications

Views

231
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 13, 2007 Jan 13, 2007

Copy link to clipboard

Copied

Never mind... I found a web site that shows me what to do.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 13, 2007 Jan 13, 2007

Copy link to clipboard

Copied

LATEST
>>>I found a web site that shows me what to do.

Can you provide a link?

Others may be interested.

--
Regards

John Waller


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines