Create queryfunction.php

last name query function for students