|
Maybe try something like this for your query string:
SELECT * FROM groups as g JOIN images as i on g.groupID = i.groupID WHERE g.country LIKE '%$city%' ORDER BY rand() LIMIT 5
A little test i did on my db was like this:
SELECT *, b.boxname FROM altg_menu as a JOIN altg_menubox as b on a.boxid = b.id WHERE a.id < 20
__________________
The Ultimate Wordpress Themes
Please login or register to view this content. Registration is FREE
|