https://skytechbot.com/how-to-prevent-sql-injection-php/
How to Prevent SQL Injection in PHP - Best Practices