грешка 1 код

Martowe

Registered
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>


<title>::Новини::</title>
<meta http-equiv="Content-Language" content="bg" />
<meta name="language" content="bulgarian" />
<meta name="rating" content="general" />
<?php

//Author: Ioan Filipov

//Email: jonidev@gmail.com


include "forum/config.php";

//Broq na poslednite temi

$latest = 2;

$link = $link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd");

if (!$link)

{

  die('Not connected : ' . mysql_error());

}

$db_selected = mysql_select_db("$dbname", $link);

if (!$db_selected)

{

  die ('Can\'t use foo : ' . mysql_error());

}

mysql_query("SET NAMES UTF8");

$get_url = "SELECT config_name, config_value FROM $table_prefix".config." WHERE config_name = 'server_name' LIMIT 0,1";

$url = mysql_query($get_url);

$url = mysql_fetch_array($url);
$latest_topics;
//za da izkluchite forum ot pokazvane, dobavete AND forum_id<>17 sled topic_approved po dolu
$latest_topics = "SELECT * FROM $table_prefix".topics." WHERE topic_approved = '1' AND forum_id<>17 ORDER BY topic_last_post_time DESC LIMIT 0,$latest";

$topics = mysql_query($latest_topics);

while($row = mysql_fetch_array($topics))

{

  extract($row);
  $date = date("d.m.Y", $topic_last_post_time);
?>

  <a href="http://<?= $url["config_value"] ?>/forum/viewtopic.php?f=<?= $forum_id ?>&t=<?= $topic_id ?>" title="<?= $topic_title ?>"><?= $topic_title ?></a> <br/> / видяна: <?= $topic_views ?> / отговори:  (<?= $topic_replies ?>)<br>

<?php
}

?>


Не ми го превежда на БГ излиза ми на *!*@!*&#!@#
некви такива как да го оправя ?

:eek:
 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> Напиши това вместо
Код:
<meta http-equiv="Content-Language" content="bg" />
<meta name="language" content="bulgarian" />
 
Toва ти е целия код:
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>


<title>::Новини::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta name="rating" content="general" />







</head>
<body>

<?php

//Author: Ioan Filipov

//Email: jonidev@gmail.com


include "forum/config.php";

//Broq na poslednite temi

$latest = 2;

$link = $link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd");

if (!$link)

{

die('Not connected : ' . mysql_error());

}

$db_selected = mysql_select_db("$dbname", $link);

if (!$db_selected)

{

die ('Can\'t use foo : ' . mysql_error());

}

mysql_query("SET NAMES UTF8");

$get_url = "SELECT config_name, config_value FROM $table_prefix".config." WHERE config_name = 'server_name' LIMIT 0,1";

$url = mysql_query($get_url);

$url = mysql_fetch_array($url);
$latest_topics;
//za da izkluchite forum ot pokazvane, dobavete AND forum_id<>17 sled topic_approved po dolu
$latest_topics = "SELECT * FROM $table_prefix".topics." WHERE topic_approved = '1' AND forum_id<>17 ORDER BY topic_last_post_time DESC LIMIT 0,$latest";

$topics = mysql_query($latest_topics);

while($row = mysql_fetch_array($topics))

{

extract($row);
$date = date("d.m.Y", $topic_last_post_time);
?>

<a href="http://<?= $url["config_value"] ?>/forum/viewtopic.php?f=<?= $forum_id ?>&t=<?= $topic_id ?>" title="<?= $topic_title ?>"><?= $topic_title ?></a> <br/> / видяна: <?= $topic_views ?> / отговори: (<?= $topic_replies ?>)<br>

<?php
}

?>
</body>
</html>
 

Горе