Skip to content

Instantly share code, notes, and snippets.

@teresko
Created June 10, 2012 23:46
Show Gist options
  • Save teresko/2907749 to your computer and use it in GitHub Desktop.
Save teresko/2907749 to your computer and use it in GitHub Desktop.
cannonical SO comment for mysql_* users
Please, don't use `mysql_*` functions to write new code. They are no longer maintained and the community has begun [deprecation process](http://goo.gl/KJveJ). See the [*red box*](http://goo.gl/GPmFd)? Instead you should learn about [prepared statements](http://goo.gl/vn8zQ) and use either [PDO](http://php.net/pdo) or [MySQLi](http://php.net/mysqli). If you can't decide which, [this article](http://goo.gl/3gqF9) will help you. If you pick PDO, [here is good tutorial](http://goo.gl/vFWnC).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment