Last 10 Forum topics

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Last 10 Forum topics

    Some add please last 10 forum post code for lava wml.. Thanks

    #2
    Code:
    $sql = "SELECT id, name FROM ibwf_topics ORDER BY
    lastpost DESC LIMIT 0,10";
    $items = mysql_query($sql);
     echo mysql_error();
     if(mysql_num_rows($items)>0)
     {
    while ($item = mysql_fetch_array($items))
    {
    
    $tlnm = htmlspecialchars($item[1]);
    $tpclnk = "<a
    href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$item[0]&amp;go=last\">$tlnm</a>";
    
    echo "$tpclnk<br/>";

    Comment


      #3
      This is last 10 ?

      Comment


        #4
        this is last 10 replied..

        Code:
        $sql = "SELECT id, name FROM ibwf_topics ORDER BY
        lastpost DESC LIMIT 0,10";
        Nous Ne Dansos Pas, Nous Sommes Le Danse.!

        Comment

        Working...
        X