3 order by id desc limit 50 "; $s=tmq($s,false); while ($r=tmq_fetch_array($s)) { $titl=marc_gettitle($r[mid]); //$titl=iconvutf($titl); $titl=trim($titl); $auth=marc_getauth($r[mid]); $auth=trim($auth); //$auth=iconvutf($auth); $titl=str_remspecialsign($titl); $auth=str_remspecialsign($auth); //if (mb_strlen($titl)>105) { $titl=mb_substr($titl,0,105).'..'; } //if (mb_strlen($auth)>95) { $auth=mb_substr($auth,0,95).'..'; } //$titl=iconvutf($titl); //$auth=iconvutf($auth); //echo "[$titl]"; if ($titl=="") { $titl=iconvutf("Untitled"); } // $item->title = $titl.":".isUTF8($titl); $item->title = $titl; $itemlink = "$dcrURL/dublin.php?ID=$r[mid]"; // $item->description = number_format($r[votescore],2)."/".number_format($r[votecount]); $cov=res_cov_dsp($r[mid],"no",45); $cov=iconvutf($cov); ?>