All pastes #424329 Raw Edit

Stuff

public php v1 · immutable
·published 2007-04-04 18:35 UTC
rendered paste body
<?php$result = mysql_query("SELECT * FROM qsf_topics WHERE topic_forum = 6 ORDER BY topic_id DESC LIMIT 5"); if(!$result) { echo mysql_error(); } else {   while ($row = mysql_fetch_array($result)) {     echo "<h2>{$row['topic_title']}</h2>";     echo "<p><a href=\"http://forum.xxxxxx.net/?a=topic&amp;t={$row['topic_id']}\">read all {$row['topic_replies'] replies.</a>";     } }?>