Relative Content

Tag Archive for phphtmlcsssqlmysql

How do I loop over an array in php that contains data that must be matched back to an SQL table?

I am creating a selection code in php that takes the user input, matches it to a word, and matches that word to a corresponding restaurant in an SQL database. It tries to autocomplete the selection so sometimes the word is multiple words. Ex: user types in ch, ‘hint’ variable is cheeseburger, cheap, chinese etc.. and it will display restauants that have cheeseburgers, cheap food, chinese.. I created code to do that, the $hint variable is where the user input is located