i am trying to search in multiple tables with following query:
SELECT * FROM asia, middle_east, europe WHERE asia.heading OR middle_east.heading OR europe.heading LIKE '%$heading'
above doesnt work... i even tried:
SELECT * FROM asia, middle_east, europe WHERE asia.heading LIKE '%$heading' OR middle_east.heading LIKE '%$heading' OR europe.heading LIKE '%$heading'
still no records are fetched!
the field name 'heading' is same in all tables.
and secondly upon results, how do i get the table name, where the result came from?? i tried mysql_tablename() but that gives me the auto_increment field's value of the result!
thanks for the help,
Daarius ...