Heres a Helpy.club tutorial on how to build a dead simple PHP Search Engine with a MySQL database. You can find the source code for this project here:
Look under the folder source/search-engine.
You can also download the following tools:
MAMP (Mac) https://www.mamp.info/en/
XAMPP (Win) https://www.apachefriends.org/index.html
Sublime Text https://www.sublimetext.com/
Please note that you should always clean any variables being passed in a form to avoid SQL injections, this demonstration covers search queries only.
Please let me know your thoughts on this tutorial and what you would like to learn next.