Used MySQLi extension instead of old MySQL. For future compatibility with new PHP versions.