Last Post

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

    Last Post

    how to add last post in index.php.
    <div align="center">My Web Community ......... http://pahasara.net



    </div>

    #2
    I hav already send that codes to u bro.use them
    <div align="center">matarawap.com</div>

    <div align="center"> </div>

    Comment


      #3
      nope machan.its not there.give me only that code.
      <div align="center">My Web Community ......... http://pahasara.net



      </div>

      Comment


        #4
        I give you my script last post...


        $lpt = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_topics ORDER BY
        lastpost DESC LIMIT 0,1"));
        $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts"));
        if($nops[0]==0)
        {
        $pinfo = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics"));
        $tluid = $pinfo[0];
        }else{
        $pinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_posts ORDER BY dtpost
        DESC LIMIT 0, 1"));
        $tluid = $pinfo[0];
        }
        $tlnm = htmlspecialchars($lpt[1]);
        $tlnick = getnick_uid($tluid);
        $tpclnk = "<a
        href=\"index.php?action=viewtpc&amp;sid=$sid&amp;t id=$lpt[0]&amp;go=last\">$tlnm</a>";
        $vulnk = "<a
        href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$tluid\">$tlnick</a>";
        echo "Last Post: $tpclnk, BY: $vulnk
        ";

        So Enjoy...

        Comment


          #5
          thanks bro................
          <div align="center">My Web Community ......... http://pahasara.net



          </div>

          Comment


            #6
            thanks bro it really works

            WapCHAT Forum Currenltly changing over to xhtml

            My Dowloads Site

            Comment


              #7
              thanks it works

              Comment


                #8
                and how do to trick for 2-10 posts??

                Comment

                Working...
                X