DEV Community

Ajax Live Search With PHP And MySQL

skptricks on August 15, 2018

Today, In this tutorial we are going to discuss how to create php ajax live search box using MySQL database. Now a days every website has integrate...
Collapse
 
crease29 profile image
Kai Neuwerth

I'm sorry if it may sounds rude or condescending but this code has nothing to do with clean or maintainable code. You don't even filter user input which you should and even more important: Tell your readers why it is important to never trust user input.

This is an absolute beginner tutorial (please tag so at least).

Collapse
 
devhead profile image
dev-head

Yeah, need to second this just in case someone comes along and wants to use it for anything close to production...it's not production code. I suspect the author is using these as his own learning process, though I would hope he would indicate that in big bold letters somewhere.

tips for improving the video... show the code, talk about the code, show a demo too. the video given scrolls through some code real quick and then we watch five minutes of someone using a search box.

Only feedback on the code i'd give is please for the love of anything that's holy, don't use spaces in a directory name. https://github.com/skptricks/php-Tutorials/tree/master/Ajax%20Live%20Search%20With%20PHP%20and%20MySQL

if author asks for a code review, happy to give feedback || submit a pull request.