port compare.php to mysqli API (addresses #22)
port compare.php to mysqli API (addresses #22)

* compare.php:
  - use mysqli API of mysql API
  - add mysql error handling (addresses #25)
  - add TODO comment for handling like profile.php

coffeestats/coffeestats,coffeestats/coffeestats,coffeestats/coffeestats