Erro
Tenho o seguinte codigo
<? require "setidioma.php";
$dom = new DOMDocument('1.0','utf-8');
$dom->load('financeiro/moedas.xml');
$rates = array();
$xpath = new DOMXPath($dom);
foreach($xpath->query('//rate') as $rate) {
$rates[ $rate->getAttribute('id') ] = $rate->getElementsByTagName('Rate')->item(0)->nodeValue;
}
?>
<div class="row">
<?php $my = new MySQLiConnection();
$sql = $my->query ("Select * From produtos Order By nome");
$pedido = $_GET["pedido"];
echo "<p>Total de produtos: <strong>".$sql->num_rows."</strong></p><br />";
echo "
";
while ($x = $sql->fetch_object())
{
echo "
<div class=\"col-md-3\">
<div class=\"c-service\">
<p class=\"service-image m-animated\"><img src=\"fotos/".$x->foto.".jpg\" alt=\"".htmlentities($x->nome)."\"></p>
<div class=\"service-content\">
<h3>".htmlentities($x->nome)."</h3>
<h3><div class=\"wrapperu\">
<b>R$ ".htmlentities($x->preco)."</b>
<div class=\"tooltip\">
<ul>
<li><h4>Pague na sua moeda:</h4></li>
<li>".$texto['valordollar']."".nl2br(htmlentities($x->preco*$rates[BRLUSD]))."</li>
<li>".$texto['valoreuro']."".nl2br(htmlentities($x->preco*$rates[BRLEUR]))."</li>
</ul>
</div>
</div></h3>
<p><b>Ref.:</b> ".nl2br(htmlentities($x->descricao))."</p>
<p><a href=\"?area=carrinho&acao=adicionar&id=".$x->id."&pedido=".$pedido."\" class=\"c-button m-outline\"><i class=\"fa fa-plus\"></i></a><img src=\"images/esp.png\" /><a href=\"?area=carrinho&acao=remover&id=".$x->id."&pedido=".$pedido."\" onclick=\"return ConfirmarExclusaoProduto()\" class=\"c-button m-outline m-color-3\"><i class=\"fa fa-times\"></i></a></p>
</div>
</div>
</div>
";
}
?>
</div>
Com o seguinte erro:
Notice: Use of undefined constant BRLUSD - assumed 'BRLUSD' in/home/storage/e/4a/40/.../public_html/..../produtos.php
Discussão (2)
Carregando comentários...