Stuff
public php v1 · immutable<?php for($p=0;$p<$maxpages;$p++){ $posts=$db->GetAssoc("SELECT * FROM ".SQL_PREFIX."Posts WHERE brdID='{$this->id}' AND threadID=0 ORDER BY pstPinned, pstBumped DESC Limit ".$threadsperpage*$p.",".$threadsperpage)); foreach($posts as $post) { //OP? if(intval($post['threadID'])==0) { //Use the Post ID instead $post['threadID']=$post['pstID']; } $tid=$post['threadID']; $this->threads[$tid]->processpost($post); }