venom (17.11.2012 / 22:21)пасяб +1
$qwer = mysql_query("SELECT * FROM $table");
while ($res = mysql_fetch_array($qwer) ) {
$text = $res['kolonka'];
if (mb_strlen($text) > 50) {
$text = mb_substr($text, 0, 10);
$text .= '...';
}
venom (17.11.2012 / 22:21)пасяб +1
$qwer = mysql_query("SELECT * FROM $table");
while ($res = mysql_fetch_array($qwer) ) {
$text = $res['kolonka'];
if (mb_strlen($text) > 50) {
$text = mb_substr($text, 0, 10);
$text .= '...';
}