22.08.2018, 09:27
Couple more tips; escape your string to avoid SQL injection. Use %e instead of %s for mysql formats
Also limit the result. Use LIMIT 1 at the end of your mysql query. You don't have to find more than 1 result.
Also limit the result. Use LIMIT 1 at the end of your mysql query. You don't have to find more than 1 result.

