[Solved] PHP Login & MySql Query
There are a few problems with your script. First off, you start by using PDO to connect to the database, then you use mysql_* functions (which are deprecated, stick to PDO !!!). Plus, you are not properly escaping your data, and your code is potentially vulnerable to SQL injection. Secondly, the query you are using … Read more