onedumbcoder Posted May 29, 2008 Share Posted May 29, 2008 is it possible to select elements from two table at once, and find out how many hits each revcieved? for example select from male, female where name='mike'; $countmales = mysql_affected_rows(male); $countfemales = mysql_affected_rows(female)? Quote Link to comment https://forums.phpfreaks.com/topic/107724-selecting-from-two-tables-with-one-query-and-finding-out-how-many-each-hit/ Share on other sites More sharing options...
bilis_money Posted May 29, 2008 Share Posted May 29, 2008 yes you can use JOIN for this case. and what do you mean by hits exactly? Quote Link to comment https://forums.phpfreaks.com/topic/107724-selecting-from-two-tables-with-one-query-and-finding-out-how-many-each-hit/#findComment-552344 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.