Skip to main content
Inspiring
January 13, 2007
Question

Advance SQL

  • January 13, 2007
  • 2 replies
  • 249 views
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.
This topic has been closed for replies.

2 replies

Inspiring
January 14, 2007
>>>I found a web site that shows me what to do.

Can you provide a link?

Others may be interested.

--
Regards

John Waller


Inspiring
January 13, 2007
Never mind... I found a web site that shows me what to do.