0) { $content = mysql_result($result, 0, "page_Text"); $content=str_replace("`", "'", $content); $content_title = mysql_result($result, 0, "page_title"); $content_desc = mysql_result($result, 0, "page_desc"); $content_keyword = mysql_result($result, 0, "page_keywords"); } $section="butterflies"; $threadurl=$_GET['threadurl']; $section=$_GET['section']; if($section=="bushelbasket") $section_temp="bushel basket"; else $section_temp=$section; //echo "articleurl:". $articleurl; $threadQ=mysql_query("SELECT * FROM forum as a,userinfo as b WHERE a.posted_by=b.userid and a.threadurl='$threadurl' and a.section='$section_temp' AND a.pending='n' AND a.deleted='n'", $db); $topic=mysql_fetch_assoc($threadQ); if(mysql_num_rows($threadQ)<1) header("location:./../index.php"); $threadid=$topic['threadid']; $threadViewed=$topic['viewed']+1; mysql_query("UPDATE forum SET viewed='$threadViewed' WHERE threadid=$threadid", $db); $replyQuery=mysql_query("SELECT * FROM forum as a,userinfo as b WHERE a.posted_by=b.userid and a.section='$section_temp' AND replyto=$threadid AND a.pending='n' AND a.deleted='n' ORDER BY date DESC", $db); //echo "SELECT * FROM forum as a,userinfo as b WHERE a.posted_by=b.userid and a.section='$section_temp' AND replyto=$threadid AND a.pending='n' AND a.deleted='n' ORDER BY date DESC"; $replyNo=mysql_num_rows($replyQuery); ?> Topic - <? echo stripslashes($topic['hl']) ?>

Posted by | | Viewed times | replies | 0){ $lastReply=mysql_fetch_assoc($replyQuery); ?> Last replied by on

"; else echo ""; ?>


0){ while($replyF=mysql_fetch_assoc($replyQ)){ //USER INFO $thisuser=$replyF['posted_by']; $userInfoQ=mysql_query("SELECT * FROM userinfo WHERE userid='$thisuser'", $db); $userinfo=mysql_fetch_assoc($userInfoQ); ?>

"; } else { echo ""; } ?>

Your reply


Log in or Sign up to take part in the forum