I have three tables:
collections
[clientID][isbn]
books
[title][isbn][author]
clients
[cliendID][firstName][lastName]
I am making a seach functon on php. The function will search the clientID and display the name (from the clients table) and what book that client has (fro collections table). What should I do for the query?
$query = "select * from database.collections where clientID like '%".$searchterm."%'";
This is what I have right now. It's able to display the entered clientID and the ISBNs.