prepare($sqlQ); $stmt->bind_param("i", $userid); $stmt->execute(); $result = $stmt->get_result(); if($result->num_rows > 0){ $userdata = $result->fetch_assoc(); $role = $userdata['role']; // get profile picture if ($userdata['photo']) { // first check for picture in folder if (file_exists(CLUB_PROFILE_PIC_PATH.$userdata['photo'])){ // if file exists....use it $userPicture = CLUB_PROFILE_PIC_URL.$userdata['photo']; } else { // first try to get backup if (file_exists(BK_CLUB_PROFILE_PIC_PATH.$userdata['photo'])){ // copy to folder if (copy(BK_CLUB_PROFILE_PIC_PATH.$userdata['photo'], CLUB_PROFILE_PIC_PATH.$userdata['photo'])){ $userPicture = CLUB_PROFILE_PIC_URL.$userdata['photo']; } } } } $userpic = $userPicture; $email = $userdata['email']; $firstname = $userdata['first_name']; $lastname = $userdata['last_name']; } else { // some reason did't find logged in user throw new exception("Error: User not Found"); } ?> Zoo Crew | Url Error
https://pixabay.com/users/1028451

There has been an error on this page. The owners have been notified. Check back in a little while.