Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Catering for postgres and mysql
08-28-2013, 12:33 PM, (This post was last modified: 08-28-2013, 12:38 PM by TurboPT.)
#5
RE: Catering for postgres and mysql
Know that according to php.net, the older [according to them] mysql functions will be considered deprecated as of 5.5.0.

This message appears with each function under their mysql documentation, such as mysql_fetch_array():

php.net Wrote:Warning

This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information.

Alternatives to this function include:
mysqli_fetch_array()
PDOStatement::fetch()

Here's a little more info from their FAQ, concerning the deprecation:

php.net Wrote:Why is the MySQL extension (ext/mysql) that I've been using for over 10 years discouraged from use? Is it deprecated? What do I use instead? How can I migrate?

There are three MySQL extensions, as described under the Choosing a MySQL API section. The old API should not be used, and one day it will be deprecated and eventually removed from PHP. It is a popular extension so this will be a slow process, but you are strongly encouraged to write all new code with either mysqli or PDO_MySQL.
Reply


Messages In This Thread
Catering for postgres and mysql - by icedlava - 08-27-2013, 12:46 PM
RE: Catering for postgres and mysql - by icedlava - 08-27-2013, 06:49 PM
RE: Catering for postgres and mysql - by phil - 08-27-2013, 07:37 PM
RE: Catering for postgres and mysql - by icedlava - 08-27-2013, 07:37 PM
RE: Catering for postgres and mysql - by TurboPT - 08-28-2013, 12:33 PM
RE: Catering for postgres and mysql - by phil - 09-01-2013, 05:06 PM
RE: Catering for postgres and mysql - by TurboPT - 09-03-2013, 10:40 PM
RE: Catering for postgres and mysql - by tomglare - 09-03-2013, 10:49 PM
RE: Catering for postgres and mysql - by phil - 09-04-2013, 06:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)