MySQL Deprecated [duplicate]

-5

When entering data into a table the following message appears:

Deprecated: mysql_connect (): The mysql extension is deprecated and will be removed in the future: use mysql or PDO instead in C: \ EasyPHP14.1 \ data \ localweb \ projects \ phptest \ connection.php on line 3

I'm just using a basic code to test the development environment I'm using (EasyPHP).

    
asked by anonymous 07.12.2015 / 03:37

1 answer

4

The message itself already says the problem: mysql_* functions have been deprecated. So, as discontinued, it is already obsolete and in future versions of PHP, mysql_* functions will probably be removed.

Alternatively, you should use mysqli_* or PDO .

If you'd like more details, I'd recommend reading this question: # where we have excellent answers.

    
07.12.2015 / 04:15