Changed mysql to mysqli in index.php
fixed link to files