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)? 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? 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
Archived
This topic is now archived and is closed to further replies.