Im trying to generate an xml with the code below, but I get this error message
without the POST, the xml is created normally.
require("conexao.php");
$variable = $_POST['cat1'];
$result_markers = "SELECT * FROM results where `cat` LIKE '
$variable'";
$resultado_markers = mysqli_query($link, $result_markers);
header("Content-type: text/xml");
echo '<markers>';
while ($row_markers = @mysqli_fetch_assoc($resultado_markers)){
echo '<marker ';
echo 'id="' . $row_markers['id'] . '" ';
echo 'name="' . parseToXML($row_markers['name']) . '" ';
echo '/>';
}
echo '</markers>';