Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

PHP Fulltext search on two (2) tables

PHP FULLTEXT Search.  How do I do a FULLTEXT Search on 2 tables?

$sql = "SELECT * FROM main, order WHERE MATCH(main.company, main.name, main.email, main.address, order.size, order.color, order.manufacturer)
AGAINST('$searchTerm' IN NATURAL LANGUAGE MODE)";

Open in new window

Avatar of David Favor
David Favor
Flag of United States of America image

Best if you post the schema for both tables.

Likely this will be sufficient for someone to assist you.
Avatar of Robert Granlund

ASKER

Here are the two tables

I need to fulltext a few fields in one of the tables but i need to search both of them.
main.sql
order_info--2-.sql
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial