I am trying to make a login system with php but could someone show me how to protect from SQL injections and other security measures?
Not really a Unity question. You might have better luck in a PHP community. Or just google around for articles on PHP SQL injection, SSL, OAuth2 etc etc.
Login system based on: