{"action":"created","issue":{"url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/184","repository_url":"https://api.github.com/repos/thedigicraft/Atom.CMS","labels_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/184/comments","events_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/184/events","html_url":"https://github.com/thedigicraft/Atom.CMS/issues/184","id":153193773,"number":184,"title":"part 31 echo fullname","user":{"login":"Jokuta","id":18481279,"avatar_url":"https://avatars.githubusercontent.com/u/18481279?v=3","gravatar_id":"","url":"https://api.github.com/users/Jokuta","html_url":"https://github.com/Jokuta","followers_url":"https://api.github.com/users/Jokuta/followers","following_url":"https://api.github.com/users/Jokuta/following{/other_user}","gists_url":"https://api.github.com/users/Jokuta/gists{/gist_id}","starred_url":"https://api.github.com/users/Jokuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jokuta/subscriptions","organizations_url":"https://api.github.com/users/Jokuta/orgs","repos_url":"https://api.github.com/users/Jokuta/repos","events_url":"https://api.github.com/users/Jokuta/events{/privacy}","received_events_url":"https://api.github.com/users/Jokuta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T08:59:55Z","updated_at":"2016-05-08T13:51:14Z","closed_at":null,"body":"Hello,\r\n\r\nI have a problem with data_user function, full name is not echoing out. I tried everything. it's part 31 from videos\r\n\r\n**Here is my code in data.php\r\n**\r\n\r\nfunction data_user($dbc, $id){\r\n\r\n$q = \"SELECT * FROM users WHERE email = '$id'\";\r\n$r = mysqli_query($dbc, $q);\r\n$data = mysqli_fetch_assoc($r);\r\n$data['fullname'] = $data['first_name'].' '.$data['last_name'];\r\n$data['fullname_reverse'] = $data['last_name'].', '.$data['first_name'];\r\n\r\nreturn $data;\r\n}\r\n\r\n**and in navigation.php**\r\n\r\n<li class=\"dropdown\">\r\n          <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\"><?php echo $user['fullname']; ?>\r\n          \t<span class=\"caret\"></span></a>\r\n         \r\n          <ul class=\"dropdown-menu\">\r\n          \t<li><a href=\"Logout.php\">Logout</a></li>\r\n          \t</ul>\r\n     </li>\r\n</ul> \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/comments/217719799","html_url":"https://github.com/thedigicraft/Atom.CMS/issues/184#issuecomment-217719799","issue_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/184","id":217719799,"user":{"login":"creptor","id":3092157,"avatar_url":"https://avatars.githubusercontent.com/u/3092157?v=3","gravatar_id":"","url":"https://api.github.com/users/creptor","html_url":"https://github.com/creptor","followers_url":"https://api.github.com/users/creptor/followers","following_url":"https://api.github.com/users/creptor/following{/other_user}","gists_url":"https://api.github.com/users/creptor/gists{/gist_id}","starred_url":"https://api.github.com/users/creptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creptor/subscriptions","organizations_url":"https://api.github.com/users/creptor/orgs","repos_url":"https://api.github.com/users/creptor/repos","events_url":"https://api.github.com/users/creptor/events{/privacy}","received_events_url":"https://api.github.com/users/creptor/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T13:51:14Z","updated_at":"2016-05-08T13:51:14Z","body":"Remember that for calling the user information you need to include a call to the function. Example:\r\n```\r\n$user=data_user($dbc,'$SESSION['email'])\r\n//--> The session variable is the one where you have stored user email\r\n```\r\n> sorry for the delay, but I was sick and the i got too busy with mothers day :P"}}