Jump to content

Select


jaymc

Recommended Posts

I have a database which has a mebers table

 

In that table is a field for members location...

 

When a member logs in I want it to display 50 people who are from the same location from them

 

However, a few locations only have 20 members or so from them and I must generate 50 profiles

 

It would be ok to have a list of 20 then 30 random ones..

 

How could I perform this search in 1 query?

 

Basically find the first 50 matches for the location and if cant find 50 match just display any location for the next 30..

Link to comment
https://forums.phpfreaks.com/topic/54199-select/
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.