<?php
function cut_msg($text)
{
mb_internal_encoding("UTF-8"
;
$text = mb_substr($text, 0, 100);
return str_replace('','',$text);
}
if (isset($_GET['like'])) like($_GET['like']);
$select_st = mysql_query("SELECT * FROM `data_status` ORDER BY `id` DESC LIMIT $onpage"
;
while ($status = mysql_fetch_assoc($select_st)) {
echo '
<div class="bfon">
'.cut_msg($status['text']).'
</div>';
}
?>