Jump to content

INNER JOIN returns 1 record?!


jarv

Recommended Posts

my original code displays all records

"SELECT * FROM wmb_members ORDER BY rsDatetaken DESC LIMIT $offset, $rowsPerPage"

 

 

my new code with INNER JOIN only displays 1 record but in my wmb_pics table I have 3 columns PicID, UserID and fileName and is only populated with 1 user!

"SELECT * FROM wmb_members INNER JOIN wmb_pics ON wmb_members.UserID=wmb_pics.UserID ORDER BY rsDatetaken DESC LIMIT $offset, $rowsPerPage"

 

 

Link to comment
https://forums.phpfreaks.com/topic/185778-inner-join-returns-1-record/
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.