I\'m working on web app that require a login page, everything work fine but i noticed that when a user try to connect and his password contain caracter he can\'t and an ugly
The query() function returned something that is not an object.
You should always check for errors.
$res = $idconnex->query($req);
if ( ! $res) {
echo 'This is not an object:
';
var_dump($res);
die;
}
You should also always read the manual when you run into problems:
Return Values
PDO::query() returns a PDOStatement object, or FALSE on failure.