I'm trying to create my first web site using html, css, js and php. I have a problem with a php function:
public function doLogin($login,$pass,$conn)
{
$req="SELECT login,password FROM client WHERE login='"+$login+"'";
$liste=$conn->query($req);
if($liste->rowCount()==1)
{
return true;
}
}
It's supposed to be used in the login but I get this message:
Fatal error: Call to a member function rowCount() on a non-object in C:\wamp\www\test\methode.php on line 56