freebong wrote:Are you telling me that's a secure login script?
No. You should properly sanitise your data.
freebong wrote:Any possibility of injection?
Yes. It is simply my opinion that the injections that can be done will not be harmful, but why take the risk? After all, if your script changes, my assumptions may no longer hold, and if you leave this potential security bug alive, you may thus get bitten.
I suggest that you ditch the MySQL extension and use the PDO extension or MySQLi extension instead. This way, you have access to prepared statements, which allow you to separate the data used in the SQL statements from the SQL statements themselves, adding a layer of security against SQL injection.