Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Anuxur

Проблема с кодировкой

Recommended Posts

Вот такой код:

<?php
mysql_connect("localhost","novokors","mU9IDasiny") or die("Could not connect to MySQL server!");
mysql_select_db("novokors_forum") or die("Could not select products database!");
$sql=mysql_query("SELECT * FROM ibf_topics ORDER BY tid DESC LIMIT 5");
echo "<ul>";
while($row=mysql_fetch_array($sql))
{
print "<li><a href/communication/forum/index.php?showtopic=".$row["tid"].">".$row["title"]."</a></li><br>";
}
echo "</ul>";
mysql_close();
?>

Выводит одни знаки вопросов и ссылка не пашет соответственно.

Помогите кто чем может!

Заранее спасибо.

Share this post


Link to post
Share on other sites

я плохо разбираюсь с sql, но попробуйте вставьте после

mysql_select_db("novokors_forum") or die("Could not select products database!");

код

mysql_query('SET NAMES utf8');

если конечно кодировка бд cp1251

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...