Skip to content

Instantly share code, notes, and snippets.

@DaveRandom
Forked from MadaraUchiha/mysql_comment.markdown
Last active December 16, 2015 11:09
Show Gist options
  • Save DaveRandom/5425317 to your computer and use it in GitHub Desktop.
Save DaveRandom/5425317 to your computer and use it in GitHub Desktop.
[**Please, don't use `mysql_*` functions in new code**](http://stackoverflow.com/q/12859942). They are no longer maintained [and are officially deprecated](https://wiki.php.net/rfc/mysql_deprecation). See the [**red box**](http://php.net/mysql-connect)? Learn about [*prepared statements*](http://en.wikipedia.org/wiki/Prepared_statement) instead, and use [PDO](http://php.net/pdo) or [MySQLi](http://php.net/mysqli) - [this article](http://php.net/mysqlinfo.api.choosing) will help you decide which. If you choose PDO, [here is a good tutorial](http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers).

Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment