Used MySQLi instead of Mysql_ which has been deprecated
Merge branch 'master' of git://github.com/Farkie/tinyissue into develop