fetchUserDetails (function)

Purpose:

Retrieves info on a single user

See Also:

fetchAllUsers (function)
fetchUserName (function)

Example:

fetchUserDetails(null,null,1)

Data Type(s):

fetchUserDetails($username=NULL,$token=NULL, $id=NULL)

Location:

users/helpers/users.php

Details:

Returns the data of a single user.
To get a single user's data by id call

<?php $data fetchUserDetails(null,null,1);?>
To get a single user's data by username call
<?php $data fetchUserDetails('username','admin');?>
To get a single user's data by email call
<?php $data fetchUserDetails('email','bob@aol.com');?>