connect_errno) { $res = @$dbh->query($sql); if ($res === false) { $err = $dbh->error; } else { $row = $res->fetch_assoc(); } } ?>

User profile #

You have an error in your SQL syntax: 

User found:

No such user.