I'm writing an simple Musicians database that has a search function that will e-mail details of musicians to people when they search for a specific instrument in that database. I have people who play more then one instrument therefore I have 5 tables, instrument, instrument2, instrument3, instrument4, instrument5.
I have a MYSQL query on my e-mail function but I cannot get it to search more then one table.
Here is the code:
$query = "SELECT * FROM instruments WHERE (instrument, instrument2, instrument3, instrument4, instrument5) = '$search'";
Am I being stupid with my syntax or am I going about the wrong way with this.
Many thanks.