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

Discussion in 'Security' started by zombie, Aug 18, 2013.

  1. zombie

    zombie Member

    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): http://php.net/manual/en/mysqli.real-escape-string.php
     
    Last edited: Aug 20, 2013

Share This Page