Unofficial Update by TheEvilSocks

Fixed mysql_*
mysql_* is deprecated so I changed it to mysqli_* and fixed the
syntaxes.

Fixed some wrong links.