adding output buffer to the mysqli connection method