Conversation
|
I reviewed most of the scouting site code and didn’t see any particular issues. The functionality looks to be working as best as I can tell which is awesome. The only suggestions I have are more Best Practices type updates, some of which may be overkill for your site. Up to you if you want to implement them or not but figured I’d pass them on for learning purposes. We can talk more about it if you have any questions. SQL Injection Security This would effectively append the second statement Drop table users; and would obviously be catastrophic. To prevent this a better practice would be to use prepared statements which essentially makes your query a 2 part transaction to prevent SQL injection. You define the base query and then apply the input parameters like below. I’m not personally very familiar with PHP/MySQL syntax so you can google for more resources on how to do this properly. I pulled the above from https://www.w3schools.com/php/php_mysql_prepared_statements.asp Try/Catch Block General Functionality Suggestions |
No description provided.