> CHECK TO SEE IF THE MEMBER LOGGED IN IS THE SAME AS THE MEMBER // >> BEING CALLED // IF NOT CURRENT MEMBER, CHECK TO SEE IF MEMBER INFO IS PUBLIC // IF MEMBER INFO PUBLIC DISPLAY $theMemId = $_GET['ID']; // >> GET ORG ID if($_SESSION['McMember_OrgId']){ // everything is alright }else{ // something has gone wrong, the org id cant be located $_SESSION['McMember_FailureReason'] = "UnableToLocateOrgId"; header("location: Login.php"); } // USED FOR TESTING PURPOSES $_SESSION['McMember_OrgId'] = 1; // Gets rid of all the error reporting on servers which are not configured appropriately. error_reporting(E_ALL ^ E_NOTICE); // Get the PHP file containing the DbConnector class require_once('../DbConnector.php'); // Create an instance of DbConnector $connector = new DbConnector(); // GET THE ORG DETAILS // THROW THEM INTO VARIABLES $qVals11 = "SELECT * FROM org WHERE OrgId =".$_SESSION['McMember_OrgId']; $result = $connector->query($qVals11); // Get the result $row = $connector->fetchArray($result); $OrgName = $row["OrgName"]; $OrgNumber = $row["OrgNumber"]; // >> GET MEMBER PERMISSIONS // CHECK PERMISSIONS OF THE USER TO SEE WHAT THEY CAN DO WITH MEMBERS // POPULATE SESSION PERMISSIONS BASED ON THOSE VALUES. // >> PULL UP THE DATA TO BE USED IN THE LIST $qVals11 = "SELECT * FROM mem WHERE MemId=".$theMemId." ORDER BY LastName"; // echo $qVals11; $result = $connector->query($qVals11); $record_found = mysql_num_rows($result); $nrows = mysql_num_rows($result); $row = $connector->fetchArray($result); if($record_found > 0){ ?>
 

MEMBER DETAILS

 
";?>

-

 
, ,  
 
 
PICTURE GOES HERE


\n"; print "To Edit This Member, click here.

"; print "To Return to Membership Administration, click here.
"; } else{ print "

No Records Located"; print "No Member located."; print "To Return to Membership Administration, click here."; } ?>