Skip to content

Instantly share code, notes, and snippets.

@rubo77
Last active December 13, 2023 23:58
Show Gist options
  • Save rubo77/1db052edd8d723b59c79790b42635f1e to your computer and use it in GitHub Desktop.
Save rubo77/1db052edd8d723b59c79790b42635f1e to your computer and use it in GitHub Desktop.
A php include that replaces all mysql functions with the corresponding mysqli functions

If you have any questions open an issue there or enhancements as Pull Request

replacement for all mysql functions

Be aware, that this is just a workaround to fix-up some old code and the resulting project will be more vulnerable than if you use the recommended newer mysqli-functions instead. So only If you are sure that this is not setting your server at risk, you can fix your old code by adding this line at the beginning of your old code:

see: https://stackoverflow.com/a/37877644/1069083

@rubo77
Copy link
Author

rubo77 commented Mar 2, 2019

moved to GitHub: https://github.com/rubo77/php-mysql-fix

I added your enhancements there.

please open issues an PRs there if you have any more solutions

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