Changed mysql to mysqli in index.php