Update getData.php

Completed getStudent and getAllStudents and turned array objects into json object.