Skip to main content

Database connection error after updating to PHP7

Comments

2 comments

  • JacobPerkins
    Hi, Check out that blog post a little bit towards the bottom, specifically the deprecation section. PHP 7 no longer supports the MySQL extension, and by your error, your script will not work on PHP 7 because it's using a removed extension. You'll either need to upgrade your script, wait for the developers to support PHP 7, or this script might be stuck with using PHP 5.
    0
  • syslint
    Hi, Check out that blog post a little bit towards the bottom, specifically the deprecation section. PHP 7 no longer supports the MySQL extension, and by your error, your script will not work on PHP 7 because it's using a removed extension. You'll either need to upgrade your script, wait for the developers to support PHP 7, or this script might be stuck with using PHP 5.

    yes, you should use "mysqli" instead of mysql
    0

Please sign in to leave a comment.