Jump to content

Selecting from two tables with one query and finding out how many each hit?


onedumbcoder

Recommended Posts

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)?

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.