{"action":"created","issue":{"url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/185","repository_url":"https://api.github.com/repos/thedigicraft/Atom.CMS","labels_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/185/comments","events_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/185/events","html_url":"https://github.com/thedigicraft/Atom.CMS/issues/185","id":153714654,"number":185,"title":"Video -19 Creating a settings table in the MySQL Databace","user":{"login":"Someshojha","id":19261056,"avatar_url":"https://avatars.githubusercontent.com/u/19261056?v=3","gravatar_id":"","url":"https://api.github.com/users/Someshojha","html_url":"https://github.com/Someshojha","followers_url":"https://api.github.com/users/Someshojha/followers","following_url":"https://api.github.com/users/Someshojha/following{/other_user}","gists_url":"https://api.github.com/users/Someshojha/gists{/gist_id}","starred_url":"https://api.github.com/users/Someshojha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Someshojha/subscriptions","organizations_url":"https://api.github.com/users/Someshojha/orgs","repos_url":"https://api.github.com/users/Someshojha/repos","events_url":"https://api.github.com/users/Someshojha/events{/privacy}","received_events_url":"https://api.github.com/users/Someshojha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T07:02:50Z","updated_at":"2016-05-09T22:03:18Z","closed_at":null,"body":"Hi,\r\n\r\nI am getting below error after pasting the code on data.php from setup.php:\r\n\r\n\r\nFatal error: Uncaught Error: Call to undefined function mysql_fetch_assoc() in C:\\xampp\\htdocs\\project\\Dynamic\\AtomCMS\\Functions\\data.php:8 Stack trace: #0 C:\\xampp\\htdocs\\project\\Dynamic\\AtomCMS\\Config\\setup.php(15): data_setting_value(Object(mysqli), 'debug-status') #1 C:\\xampp\\htdocs\\project\\Dynamic\\AtomCMS\\index.php(1): include('C:\\\\xampp\\\\htdocs...') #2 {main} thrown in C:\\xampp\\htdocs\\project\\Dynamic\\AtomCMS\\Functions\\data.php on line 8\r\n\r\n\r\nThis the code on data.php:\r\nfunction data_setting_value($dbc, $id){\r\n\t$q = \"SELECT * FROM settings WHERE id = '$id'\";\r\n\t$r = mysqli_query($dbc, $q);\r\n\r\n\t$data = mysql_fetch_assoc($r);\r\n\t\r\n\treturn $data['value'];\r\n}\r\n\r\n\r\nand this the code on setup.php:\r\n\r\n$debug = data_setting_value($dbc, 'debug-status');\r\n\r\nWhy it is not taking $r variable? Please help, i am stuck.\r\n"},"comment":{"url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/comments/218003847","html_url":"https://github.com/thedigicraft/Atom.CMS/issues/185#issuecomment-218003847","issue_url":"https://api.github.com/repos/thedigicraft/Atom.CMS/issues/185","id":218003847,"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-09T22:03:18Z","updated_at":"2016-05-09T22:03:18Z","body":"You have to use `mysqli`, and not `mysqli`.\r\nCode:\r\n```\r\n$data = mysqli_fetch_assoc($r);\r\n```"}}