Ahoj mám problém poradí mi někdo proc mi tenhle kod nechce fungovat?
<?php
include 'include/connect.php';
header("Content-type: text/xml");
echo '<?xml version="1.0" encoding="utf-8"?>';
$dotaz=mysql_query(" SELECT *
FROM new_buy AS n
JOIN vazby AS v ON v.id_n = n.id_n
JOIN produkty AS p ON p.id_p = v.id_p
ORDER BY datum_podani DESC
");
echo "<box>";
while($pom=mysql_fetch_assoc($dotaz)){
echo "<objednavka>
<idobjednavky>".$pom["id_n"]."</idobjednavky>";
echo "<datum_podani>".$pom["datum_podani"]."</datum_podani>";
echo "<id_produktu>".$pom["id_p"]."</id_produktu>";
echo "<nazev_produktu>".$pom["nazev_p"]."</nazev_produktu>";
echo "<cena>".$pom["cena_p"]."</cena>
</objednavka><br/>";
}
echo "</box>";
?>