<?php } // end of foreach loop } // end of if statement echo "<br/><br/><b>SELECT USER BY NAME</b><br/>"; $LocationManager = new LocationManager(); $US = $LocationManager->getUserByName("JOHN", "SMITH"); foreach ($US as $user) { $email = $user->getEmail(); echo "The Email is: " . $email . "<BR>"; } //getUserByLanguage $LocationManager = new LocationManager(); $Locations = $LocationManager->getUserByLanguage("English"); echo "<br/><br/><br/><b>Locations BY LANGUAGE</b><br>"; $userCount = count($Locations); if ($userCount > 0) { foreach ($Locations as $Locations) { $uid = $Locations->getUserId(); $fname = $Locations->getFirstName(); $lname = $Locations->getLastName(); $pwd = $Locations->getPassword(); $loginid = $Locations->getLogin(); $email = $Locations->getEmail(); $dob = $Locations->getDOB(); $language = $Locations->getUserLanguage(); $usertype = $Locations->getUserType(); $regdate = $Locations->getRegistrationDate(); $location = $Locations->getLocation();