rendered paste body$sql2 = "SELECT * FROM forumtutorial_posts WHERE parentID='0' order by parentid DESC";$result2 = mysql_query($sql2);while($row2 = mysql_fetch_assoc($result2)){ $text = $row2['post']; $maxchars=300; $len = strlen($text); if($len > $maxchars) { echo "<p><b><a href=\"las.php?id=" . $row2['postid']; echo "\">"; echo $row2['title'] . "</a></b></p>"; echo substr($text,$maxchars) . "... <a href=\"las.php?id=" . $row2['postid']; echo "\">[LÄS MER]</a><br /><br /><hr />"; } else { echo $text; }}