PHPackages                             rubo77/php-mysql-fix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rubo77/php-mysql-fix

ActiveLibrary[Database &amp; ORM](/categories/database)

rubo77/php-mysql-fix
====================

A replacement for all mysql functions with mysqli equivalents.

v4.0.0(1y ago)1144770[2 issues](https://github.com/rubo77/php-mysql-fix/issues)MITPHP

Since May 26Pushed 1y ago8 watchersCompare

[ Source](https://github.com/rubo77/php-mysql-fix)[ Packagist](https://packagist.org/packages/rubo77/php-mysql-fix)[ RSS](/packages/rubo77-php-mysql-fix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-mysql-fix
=============

[](#php-mysql-fix)

A replacement for all mysql functions with mysqli equivalents.

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 replacement.

### usage

[](#usage)

You can install it via Composer adding this to your `composer.json`:

```
{
    "require": {
        "rubo77/php-mysql-fix": "^4.0"
    },
    "autoload": {
        "files": [
            "vendor/rubo77/php-mysql-fix/fix_mysql.inc.php"
        ]
    }
}
```

and then typing:

```
$ composer update
```

Alternatively you can manually download and include the file at the top of your PHP script:

```
