-3

idjieqwdfjaswdaswdij90jciej9-jqwdfqewdqwdqwdqwdqwd

2 Answers2

2

This error means means that your query is the issue. check your database call or sql query.

"An empty array is returned if there are zero results to fetch, or FALSE on failure. " from http://php.net/manual/en/pdostatement.fetchall.php

gavgrif
  • 14,151
  • 2
  • 21
  • 24
0
$stmt = $db->query('SELECT * FROM currentPot');
if($stmt){
    $currentPot = $stmt->fetchAll();
}

Check if the query executed or not before using the function fetchAll(). Your query probably returned nothing, so, $stmt is false, and so its saying boolean.

Parthapratim Neog
  • 4,011
  • 5
  • 34
  • 76