I'm trying to take out the game id from the database but I'm 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.