$resourceid2 = $dbConnection->selectFromTable($query);
        break;
    case empty($id):
        // null case
        error_log("The parameter id has not been specified.");
        return false;
        break;
    default:
        // assumes id is set to the specific id of the college
        $resourceid = $dbConnection->selectFromTable($query, "CollegeID", $id);
        $resourceid2 = $dbConnection->selectFromTable($query, "CollegeID", $id);
        break;
}
if (!empty($attribute)) {
    if ($attribute == "CollegeID") {
        $array = $dbConnection->formatQueryResults($resourceid, $attribute);
    } else {
        $array = $dbConnection->formatQueryResults($resourceid, $attribute);
        //print_r($array);
        $array2 = $dbConnection->formatQueryResults($resourceid2, "CollegeID");
        //print_r($array2);
    }
    if (is_null($array[0])) {
        error_log("This attribute is null for the query and id you have specified.");
        //print 'NULL VALUE OR INVALID ATTRIBUTE';
        //error_log("The attribute parameter is invalid.");
        return false;
    }
    $array = array_merge($array, $array2);
} else {
    $array = $dbConnection->formatQueryResults($resourceid);