Code: Alles auswählen
echo "<a style=\"color:#A4E4F5;\" href=\"http://deineurl/viewtopic.php?f=".$inhalt['topic'][$i]['f_id']."&t=".$inhalt['topic'][$i]['t_id']."&p=".$inhalt['topic'][$i]['p_id']."#p".$inhalt['topic'][$i]['p_id']."\" title=\"".htmlspecialchars($inhalt['topic'][$i]['subject'], ENT_QUOTES, "UTF-8")."\" onclick=\"window.open(this.href); return false;\">".((strlen($inhalt['topic'][$i]['subject'])>40)?utf8_substr(htmlspecialchars($inhalt['topic'][$i]['subject'], ENT_QUOTES, "UTF-8"),0 , 40)."...":htmlspecialchars($inhalt['topic'][$i]['subject'], ENT_QUOTES, "UTF-8"))."</a><br />\n";