Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wack63118y@ScribeOfGoD you're suposed to use PDO now, you where suposed to jse mysqli since a long tkme ^^
-
Wack63118y@Disreality it depends. For a new project just use something like Doctrine, that takes care about it. For a legacy project, I've once written a simple class with a constructor function, that takes a string (SQL query) as first argument and an optional array with the parameters. It took some work to replace all the calls but in the end I'd say worth the effort.
-
Wack63118y@Disreality I disagre strongly. Justtake a look how many fucked up tutorials are out there teaching young devs to just take the variables from a GET request and pass it to mysql_ this creates an insecure web. (Don't get me started about file/image upload)
Related Rants
Why is it that PHP 7 has all mysql_ tags disabled by default.. it's such a pain to change everything.
undefined
php
php7