Monday 20 May 2019

php - Mysql to PDO: a lot of code written, almost done. Is it worth to switch?

You don't have to worry about switching. If the project is almost ready, and you will start on a new one soon, just follow the new, better practices with your next project.




On the other hand, you just collected some useful experience. With a well-designed codebase, it should not be a lot of worry to switch between mysql_* and PDO. Write objects and methods to gather data, so your actual SQL calls will be quite few.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...