I have an app where after the user inserts a word in an input field, the app needs to do a MYSLQ query and display information from a database related to that query on a modal, on the same page, and without reloading the page behind the modal. Before this I have only used PHP to manage MYSQL queries without any problem, but since PHP only works before the page loads, it isn't helpful here. I would like to know what most developers do in this situation. Thanks in advance.