diff --git a/Student/ApplicationHistory.php b/Student/ApplicationHistory.php index d7968d5..1b2283e 100644 --- a/Student/ApplicationHistory.php +++ b/Student/ApplicationHistory.php @@ -10,8 +10,11 @@ $currentUserId = $_SESSION["uid"]; $applicationQuery = "select * from application as application - INNER JOIN school on application.SchoolId = school.SchoolId - where UserId='$currentUserId'"; + INNER JOIN school on application.SchoolId = school.SchoolId + where UserId in (Select UserId from user where UserId = '$currentUserId')"; + + + $applicationResult = mysqli_query($connection,$applicationQuery) or die(mysqli_error($connection));