Skip to content

Instantly share code, notes, and snippets.

@salathe
Forked from teresko/gist:2907749
Created June 11, 2012 12:40
Show Gist options
  • Save salathe/2909900 to your computer and use it in GitHub Desktop.
Save salathe/2909900 to your computer and use it in GitHub Desktop.
cannonical SO comment for mysql_* users
Please, don't use `mysql_*` functions for new code. They are no longer maintained and the community has begun the [deprecation process](http://news.php.net/php.internals/53799). See the [**red box**](http://php.net/mysql-connect)? Instead you should learn about [prepared statements](http://en.wikipedia.org/wiki/Prepared_statement) and use either [PDO](http://php.net/pdo) or [MySQLi](http://php.net/mysqli). If you can't decide, [this article](http://php.net/mysqlinfo.api.choosing) will help to choose. If you care to learn, [here is good PDO tutorial](http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment