Jump to content

[SOLVED] Proper Join Statement?


radar

Recommended Posts

One thing I am totally not good with is join statements.  I've used them maybe once or twice in my whole career of programming in PHP...  So through this post I am looking for someone to 'setup' my join query for me based on the information below... 

 

so I have 2 tables i need to get all the information from...

 

table 1: users

u_id (key)

d_id (department id)

f_name

l_name

d_name (display name)

email

password

date_added

status (still active or no)

 

table 2: departments

d_id

d_name

 

 

d_id is in both tables, it is also always going to be a number.  same with u_id...  All I need is how to setup the query, I can do the parsing and get it setup as an array suitable to send it into Smarty.

 

Thanks for any help.

 

Link to comment
https://forums.phpfreaks.com/topic/105484-solved-proper-join-statement/
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.