You have written wrong syntax
echo $db => connect_errno;
If need to check the connection error, than you have to write
echo $db->connect_errno;
or something like
if ($db->connect_error) {
die("Connection failed: " . $db->connect_error);
}