diff --git a/users.php b/users.php index bde65ca..1e5ab11 100755 --- a/users.php +++ b/users.php @@ -16,6 +16,43 @@ echo "
Editing to be added, for now, it doesn;t exist
"; +$result = $sql->prepare("SELECT users.id as userid, users.username as username, users.email as email, users.created as created, users.firstname as firstname, users.lastname as lastname, users.usertype as usertypeid, usertypes.typename as usertype +FROM yaptc.users +INNER JOIN usertypes ON users.usertype = usertypes.id +ORDER BY users.lastname ASC;"); +$result->execute(); +echo 'First Name | '; +echo 'Last Name | '; +echo 'Username | '; +echo 'Created | '; +echo 'User Type | '; +echo '|
---|---|---|---|---|---|
" . $row['firstname'] . " | "; +echo "" . $row['lastname'] . " | "; +echo "" . $row['username'] . " | "; +echo "" . $row['email'] . " | "; +echo "" . $row['created'] . " | "; +echo "" . $row['usertype'] . " | "; +echo "
Use the following form to add users to the system. Passwords must be 8+ characters. Email must be filled out, and username must be unique.
"; + require_once($yaptc_lib . "phpass-0.3/PasswordHash.php"); if (!empty($_POST)) {