$db = new PDO("mysql:host=$dbHost;dbname=$db;charset=utf-8", $dbUser, $dbPass);
return $db;
# Get all users in pot
$stmt = $db->query('SELECT * FROM `currentPot`');
$currentPotArr = $stmt->fetchAll();
and I've got error like this :
[Fri Dec 11 07:57:35.260326 2015] [:error] [pid 2274] [client 89.64.51.139:32356] PHP Fatal error: Call to a member function fetchAll() on boolean in /home/admin/domains/csbox.pl/public_html/php/update.php on line 21,
referer: http://csbox.pl/
Why?
Php 5.6.16 Apache 2.4.17 DirectAdmin 1.49.1 MySQL 5.6.12
On the site also iv'e got an php/update.php 500 (Internal Server Error) error