title: how to filter search result with dropdown list in php
body: <p>i am doing a webpage project. it have student role and teacher role. when teacher signed in their account, they are able to search students by name. </p>
  
  <p>but many students can have the same name, i don't know how to code this part where when teacher typed student's name in the search bar, the result should filter all students' name. 
  for example, teacher is searching for "john tan" then all the similar names should be displayed in the dropdownlist and filter all the results from the database."john tan mingjie" or "john lim"</p>
  
  <p>thank you whoever is helping me with this!!!</p>