Jump to content

help with JOIN


nobodyk

Recommended Posts

Here's my table structures:

 

folders

folderid foldername status pw

 

 

bfolders

foldername userid imageid location

 

I'm trying to get the "folderid" where "userid" equals let's say 10.

 

A user can't have the same "foldername"

 

I will give it a shot...

 

"SELECT folders.folderid, folders.foldername, bfolders.userid, bfolders.imageid FROM folders, bfolders WHERE folders.foldername = bfolders.foldername AND bfolders.userid = 10"

 

Link to comment
https://forums.phpfreaks.com/topic/211412-help-with-join/
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.