Mysql is deprecated

Replaced mysql_* with mysqli_*.
See http://www.php.net/manual/en/function.mysql-connect.php
Merge pull request #1 from ColdIce1/master

Mysql is deprecated