Jump to content

group by or order by problem


mre2mpo

Recommended Posts

I have a query where I want to search for users from a county but there is also a nearestcity field. What I want to do is select a nearestcity and display these first and then display the rest of the users from that county.

 

I am not quite sure how do it.

 

$query = \"select * from users where county = $countyname ?????then wat do I need to do with $countyname.

 

Michael

Link to comment
https://forums.phpfreaks.com/topic/1122-group-by-or-order-by-problem/
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.