session_start(); // echo $_SESSION['usersname']; // echo $_SESSION['usersid']; // used the echos above for testing purposes include 'TPGP_db.php'; $theStudentID = $_SESSION['usersid']; $theAdminUser = $_SESSION['usersname']; if (($theStudentID=='2') AND ($theAdminUser='Administrator')){ $sql = mysql_query("SELECT * FROM users WHERE userid='$theStudentID'"); $record_found = mysql_num_rows($sql); if($record_found > 0){ ?>
![]() |
|
FUNCTION | "; print ""; print "ID | "; print ""; print "First Name | "; print ""; print "Last Name | "; print ""; print "Email | "; print ""; print "Login | "; print ""; print "Comments | "; print ""; print "Create Date | "; print ""; print "Last Login | "; print ""; print "Active | "; print "|||
---|---|---|---|---|---|---|---|---|---|---|---|---|
UPDATE"; print " | EDIT"; print " | VIEW"; print " | DELETE"; print " | " . $row["userid"]; print " | " . $row["first_name"]; print " | " . $row["last_name"]; print " | " . $row["email_address"]; print " | " . $row["username"]; print " | " . $row["info"]; print " | " . $row["signup_date"]; print " | " . $row["last_login"]; print " | " . $row["activated"]; print "\n"; } print " |
No Records Located"; print "To Create A New Student, click here."; print "To Return to the Administrative Main Menu, click here."; } // mysql_close($dbcon); } // END IF RECORD FOUND FOR USER ID - to ensure that a member of the system has logged in } // END THE ADMIN USER ID =2 // echo $theStudentID; // echo $theAdminUser; ?>