<td><?php 
            echo $myRecord[FirstName];
            ?>
 </td>
						<td><?php 
            echo $myRecord[LastName];
            ?>
 </td>
						<td>
							<?php 
            getUserGroup($myRecord[Username], true);
            //From generalFunctions.php //TODO IMPROVE QUARY
            ?>
							</td>
						<td><?php 
            getPermissionID($myRecord[Username], false, true);
            ?>
</td>
						<td><?php 
            echo $myRecord[DayOfBirth] . "/" . $myRecord[MonthOfBirth] . "/" . $myRecord[YearOfBirth];
            ?>
 </td>
						<td><?php 
            echo $myRecord[City];
            ?>
 </td>
						<td><?php 
            echo $myRecord[Street];
            ?>
 </td>
						<td><?php 
Example #2
0
 private function getUserDetails()
 {
     $sql = "SELECT * FROM USERS WHERE Username = '******'";
     $result = executeQuary($sql);
     $myRecord = mysql_fetch_array($result);
     $this->firstName = $myRecord["FirstName"];
     $this->lastName = $myRecord["LastName"];
     $this->approvedUser = $myRecord["Approved"];
     $this->id = $myRecord["ID"];
     $this->phone = $myRecord["Phone"];
     $this->cellPhone = $myRecord["CellPhone"];
     $this->email = $myRecord["Email"];
     $this->passwd = $myRecord["Password"];
     $this->BirthYear = $myRecord["YearOfBirth"];
     $this->birthDay = $myRecord["DayOfBirth"];
     $this->birthMonth = $myRecord["MonthOfBirth"];
     $this->city = $myRecord["City"];
     $this->Street = $myRecord["Street"];
     $this->houseNumber = $myRecord["HouseNumber"];
     $this->memberOfGroup = getUserGroup($this->uname);
     $this->permission = getPermissionID($this->uname, true);
     $this->approvedUser = $myRecord["Approved"];
     $this->fatherName = $myRecord["FatherName"];
     $this->fatherPhoneNo = $myRecord["FatherPhone"];
     $this->motherName = $myRecord["MotherName"];
     $this->motherPhoneNo = $myRecord["MotherPhone"];
     $this->payment == $myRecord["payment"];
     $this->parrentPermission = $myRecord["parrentsPermission"];
 }