Hi all,
so I started watching some videos about PHP and mysql, installed XAMP and started practicing. I learned variables, outputting to screen, if statements, for/while loops and I am currently looking into classes and OOP. I built my first mini website, focusing more on functionality than graphic design (will fix that later). Then while browsing different PHP resources I learned that mysql has now been deprecated and that mysqli should be used instead. I now have to modify all the queries. Then I started wondering what else have I been learning that it’s not correct or outdated? For example, should I create a separate dbconnect.php that takes care of connecting to the db instead of adding this info into the html page? And should this file be stored in a protected directory on the server? Is it ok to write queries into an html page to extract and display data from a db and if not, how is it done safely? There is so much to learn about PHP security that i feel like one should dedicated a whole month just for that, before even starting to write any code. What is the best learning path for someone that is just starting?