DEV Community

Discussion on: Build a Chatbot with PHP, MySQL and AJAX in 10 minutes

Collapse
 
sroehrl profile image
neoan

I don't know why this still finds it's way into tutorials and libraries in 2021, but be aware that there are SQL-injection possibilities with mysqli_real_eacape_string and that preventing those would exceed the feasibility of such entry-level tutorials. Please use prepared statements whenever handling user input.