adamjblakey Posted January 30, 2008 Share Posted January 30, 2008 Hi, I have a bit of a tricky one which i cannot work out how to do. Basically i have done the following query: $new = new database; $new->selects("SELECT * FROM regions WHERE country = 'Africa'"); $results = $new->getRes(); $smarty->assign('results', $results); Which will find all the different regions in Africa. Then this has been printed out by: {foreach from=$results item=result name=results} {$result.country} - (How Many Listings in this country) {/foreach} Then what i want to do is run another query with the 'users' table to check if any of the regions printed out match. Does anyone know how to do this at all? Cheers, Adam Quote Link to comment https://forums.phpfreaks.com/topic/88580-cross-matching-results/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.