31.12.2012, 18:11 
		
	
	
		Hallo,
Ich habe mir einen Code gebastelt der die neuesten Posts anzeigen soll, nur leider erhalte ich von ihm weder eine Ausgabe noch einen Fehler.
Nun wollte ich euch mal fragen ob ihr wisst an was es liegt.
Danke schon mal
	
	
	
	
	
Ich habe mir einen Code gebastelt der die neuesten Posts anzeigen soll, nur leider erhalte ich von ihm weder eine Ausgabe noch einen Fehler.
Nun wollte ich euch mal fragen ob ihr wisst an was es liegt.
PHP-Code:
<?php
global $db, $mybb;
    {
       $query = $db->query("SELECT p.subject, p.username, p.uid, p.pid, p.tid, p.icon, t.tid, t.fid, t.lastpost, t.lastposteruid, t.lastposter, p.dateline
                         FROM ".TABLE_PREFIX."posts p
                         LEFT JOIN ".TABLE_PREFIX."threads t ON (p.tid=t.tid)  AND (p.dateline=t.lastpost)
                         WHERE 1=1 $unviewwhere AND t.visible='1' AND t.closed NOT LIKE 'moved|%' AND t.fid IN (3,4,5,6,9,69,7,11,12,13,14,72,17,15,37,39,38,40)
                         ORDER BY p.dateline DESC
      LIMIT 0, 10");
            echo '';
          while($row2 = $db->fetch_array($query)){
         ?>
         <tr style="font-size: small;">
         <td width="57%"><div id="smalltext"><span style="font-size: 11px"><?php echo $row2->subject; ?></div></span></td>
         <td widht="25%" align="left"><div id="smalltext"><span style="font-size: 11px">Verfasser</div></span></td>
         <td align="right" width="16%"><div id="smalltext"><span style="font-size: 11px">Letzter Beitrag</span></div></td>
         <td width="1%"></td>
  </tr>
  <?php
  }
  }
   ?>Danke schon mal
	
 Neueste Themen ausgeben
				
