topic_title varchar(255) utf8_unicode_ci
CODE
$result = mysql_query("SELECT * FROM `". $table_prefix ."topics` WHERE forum_id ORDER BY `topic_last_post_id` DESC LIMIT 0 , ". $t);
while($row = mysql_fetch_array($result))
{
$out_title = ''. $row['topic_title'] .'';
$poster[0] = $row['topic_last_poster_id'];
$poster[1] = $row['topic_last_poster_name'];
$poster[2] = $row['topic_last_post_time'];
$poster[2] = strftime('%Y-%m-%d %H:%M:%S', $poster[2]+25200);
$out_poster = ' ['. $poster[1] .']'.$poster[2];
if(strlen($row['topic_title']) > $w) { $row['topic_title'] = substr($row['topic_title'], 0, $w); }
$output .= $out_forum . $out_title . $out_poster .'
';
}
echo $output;
while($row = mysql_fetch_array($result))
{
$out_title = ''. $row['topic_title'] .'';
$poster[0] = $row['topic_last_poster_id'];
$poster[1] = $row['topic_last_poster_name'];
$poster[2] = $row['topic_last_post_time'];
$poster[2] = strftime('%Y-%m-%d %H:%M:%S', $poster[2]+25200);
$out_poster = ' ['. $poster[1] .']'.$poster[2];
if(strlen($row['topic_title']) > $w) { $row['topic_title'] = substr($row['topic_title'], 0, $w); }
$output .= $out_forum . $out_title . $out_poster .'
';
}
echo $output;
a w rezultacie dostaje takie cos:
Najpewniejszy i najelegantszy spos�b dodawania zdj?? [Lemon]2009-02-14 11:44:57
to mam zapisane w pliku last.php (UTF8 without BOM)
includuje to w pliku index.php (UTF8 without BOM)
więc jak się pozbyć tych krzaków?