This question already has an answer here:
Im trying to take out the game id from the database but im having trouble with it. And i do it like this:
if(!isset($_GET['round'])){
$currentgame=$mysql->query('SELECT `value` FROM `info` WHERE `name`="current_game"')->fetch_assoc();
$currentgame=(int)$currentgame['value'];
The error that comes up is Fatal error: Call to a member function fetch_assoc() on boolean in C:\xampp\htdocs\index.php on line 85
I have no clue on what i might be doing wrong.
</div>