function isInnoDbSupported($conn)
    {
        $results = $conn->query('SHOW ENGINES');

        foreach ($results as $result) {
            if (strtolower($result['Engine']) === 'innodb' && strtolower($result['Support']) !== 'no') {
                return true;
            }
        }

        return false;
    }
function isInnoDbSupported($conn)
    {
        $results = $conn->query('SHOW ENGINES');

        foreach ($results as $result) {
            if (strtolower($result['Engine']) === 'innodb' && strtolower($result['Support']) !== 'no') {
                return true;
            }
        }

        return false;
    }
function isInnoDbSupported ( $ conn ) { $ results = $ conn -> query ( 'SHOW ENGINES' ) ; foreach ( $ results as $ result ) { if ( strtolower ( $ result [ 'Engine' ] ) === 'innodb' && strtolower ( $ result [ 'Support' ] ) !== 'no' ) { return true ; } } return false ; }
Checks to see if the MySQL InnoDB storage engine is installed and enabled.

@param PDO $conn
@return bool
Checks to see if the MySQL InnoDB storage engine is installed and enabled .