Fatal error: Call to a member function prepare() on null in /var/www/html/funcoes.php on line 35 PDOException Object ( [message:protected] => SQLSTATE[HY000] [2002] No route to host [string:Exception:private] => [code:protected] => 2002 [file:protected] => /var/www/html/funcoes.php [line:protected] => 7 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/funcoes.php [line] => 7 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => mysql:host=192.168.1.1;dbname=empresa [1] => root [2] => q1w2e3r4 )
)
[1] => Array
(
[file] => /var/www/html/index.php
[line] => 6
[args] => Array
(
[0] => /var/www/html/funcoes.php
)
[function] => include
)
)
[previous:Exception:private] =>
[errorInfo] =>
)