PHP: mysql() is being deprecated, fix your codes!


If you code your own scripts, be prepared: php is deprecating mysql() - deprecation notices will start to show in 5.5

I just spent the past few days updating some sites and although it's a time-consuming pain in the butt, it's extremely easy.

Even easier if you had the forethought to use custom functions to connect and query your databases.

This is especially important if you rely on the mysql_real_escape_string() function for security of your inputs (you shouldn't, but a lot of people do):
Last edited: