开发者

Displayed content before the template while reading meta description

This is my code:

$query = mysql_query("SELECT * FROM bancuri WHERE id = '$bancid'") or die(mysql_error());

while ($coloana = mysql_fetch_array($query)) {
    $nume = $coloana["nume"];
    $banc = $coloana["banc"];
    $oras = $coloana["oras"];
    $categorie = $coloana[开发者_开发百科"categorie"];
    $id = $coloana["id"];
    $keywords = $coloana["keywords"];
}

I have set the meta description to read the field $banc.

The problem is that, on a few pages, it shows me the content of $banc before the templates begins.

I don't know why; it should be visible only for search engine robots.

The meta tag is written like this <meta name="DESCRIPTION" content="<?php echo $banc; ?>" />

What is causing this problem?


I think there is a / are some double quotes in the $banc variable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜