Jump to content

Search Multiple Tables


jason97673

Recommended Posts

Hello, I am trying to search mutiple tables in my PHP code. I believe I only need to get the query correct. Basically I have maybe 5 table where I need t oselect all the data from them but I only want to search one of the fields in each of those tables.

 

I have something like

" SELECT * from movies, music, hats, books, 
WHERE movies.name, music.album, hats.upc, books.title like '%$search%'"

 

Obviously the variable search is specified in the PHP when someone types in a keyword then hits search.

 

Anyone can help? Thanks

Link to comment
Share on other sites

Guest
This topic is now 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.