All pastes #389710 Raw Edit

Mine

public php v1 · immutable
·published 2007-03-10 22:14 UTC
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; }}