Thanks for your responses and suggestions. I was able to clear the error that I was initiallly getting by rearranging some of the PHP code. However, now my search returns all of the records on the web server, but works correctly on my localhost. I uploaded all of the necessary files/folders but my search still returns the entire product line and not the items with the search words.