Query does not return value

0

I have a query in the header of the page that returns the title, the meta name="description" and the meta name="keywords" that works very well. However, applying this same query structure to the body of the page returns no value. I already tested the query in PHPMyAdmin and it is correct. But the page does not work.

$limi = 1;
$tit = BD::conn()->prepare("SELECT id_orclinha, dc, orclinha
FROM pe_orclinhas
WHERE id_orclinha = 458 
LIMIT 0 , ?");
$tit->execute(array($limi));
$dados = $tit->fetch();
$cabeca = $dados['orclinha'];   

echo $cabeca;
    
asked by anonymous 16.10.2017 / 03:53

0 answers