Skip to content

Instantly share code, notes, and snippets.

@swamimayank
Forked from PeeHaa/mysql.md
Created October 23, 2012 19:48
Show Gist options
  • Save swamimayank/3941118 to your computer and use it in GitHub Desktop.
Save swamimayank/3941118 to your computer and use it in GitHub Desktop.
Ancient mysql_* default message
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/q0gwD). See the [red box](http://goo.gl/OWwr2)? Instead you should learn about [prepared statements](http://goo.gl/orrj0) and use either [PDO](http://goo.gl/TD3xh) or [MySQLi](http://php.net/mysqli). If you can't decide which, [this article](http://goo.gl/YXyWL) will help you. If you pick PDO, [here is good tutorial](http://goo.gl/b2ATO). Also see [Why shouldn't I use mysql functions in PHP?](http://goo.gl/J5jAo)

Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial. Also see Why shouldn't I use mysql functions in PHP?

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