$q = $db->query_read("SELECT * FROM post WHERE threadid = ". $threadid ." ORDER BY dateline ASC");while($post = $db->fetch_array($q)){//echo "<div>".$post['username'].'<br>'.$post['text'].'</div>'; }