Skip to content

Select query for email address suddenly stopped working #100

@sendy34

Description

@sendy34

I have a table called users, and I used to check email adress and password for login credentials. Everything worked fine, but suddenly email addresses stopped working so I removed @ symbol from email and it started working.

Here's my query:
$user = $db->row("SELECT * FROM users WHERE email=:email AND password=:password", array("email"=>$_POST['email'], "password"=> md5($_POST['password']) ));

this returns 0 results if email address has @ symbol.
And returns 1 row if I remove @ sign from email address in database.

How should I solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions