im trying to make a dynamic sitemap with php but when i use "&" as a string in my while loop im getting error: "error on line 1 at column 506: EntityRef: expecting ';'" if i delete "&" code works this is the while loop:
while ($category = mysqli_fetch_array($categories)) {
echo "<url><loc>http://" . $_SERVER['HTTP_HOST'] . "/anime-detail?anime_sef=".$category['anime_sef']."&id=".$category['anime_id']."</loc></url>"; }