'yes' "; } $postdata=tmq($postdata); if (mysql_num_rows($postdata)==0) { die("no posts id $TID"); } $postdata=mysql_fetch_array($postdata); if (strpos($postdata[viewers],",$_tmid,")===false) { $newviewers=$postdata[viewers].",$_tmid,"; tmq("update posts set viewers='$newviewers' where id='$TID' "); } tmq("update posts set viewcount=viewcount+1 where id='$TID' "); $backto=urlencode("viewtopic.php?TID=$TID"); echo "
$postdata[topic]

"; ?> 'yes' "; } $sql.=" order by dt asc, ID asc "; //echo $sql; $s=tmqp($sql,"viewtopic.php?TID=$TID"); ?>