Chat post showing from revers orde(lavalariar help)

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

    Chat post showing from revers orde(lavalariar help)

    Hi every one,
    in chat room we can fix the limit of chat post by changing
    $counter=0; or if($counter<20) to our needed amount like if we change it to if($counter<10) then it will show 1-10 post in room.
    But now if i don't want to show first post.I want to show like 2-10 post in room and first post is be hidden.
    Then what to do ? Please somebody help
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    Originally posted by Ponick View Post
    Hi every one,
    in chat room we can fix the limit of chat post by changing
    $counter=0; or if($counter<20) to our needed amount like if we change it to if($counter<10) then it will show 1-10 post in room.
    But now if i don't want to show first post.I want to show like 2-10 post in room and first post is be hidden.
    Then what to do ? Please somebody help
    if($counter<10 && $counter!=1)

    Comment


      #3
      Its showing only 1 post in room

      i want to show 2nd post to 10 post . 1st post will be not shown . Please help
      PHP Code:
      /* I don't know everything hehe */ 
      Find me on facebook

      Comment


        #4
        make a select with limit 2 to 10
        select message from room order by timesent desc limit 2 ,10

        Comment


          #5
          Originally posted by comando View Post
          make a select with limit 2 to 10
          select message from room order by timesent desc limit 2 ,10
          with mysql?? but im very wk in sql

          do me a favr please........ create dis code
          PHP Code:
          /* I don't know everything hehe */ 
          Find me on facebook

          Comment


            #6
            $sql = mysql_fetch_array(mysql_query("SELECT msg, user, id FROM chatmsg WHERE uid='".$changable."' ORDER BY id DESC LIMIT 2, 10"));


            or smth...
            Last edited by Vayne; 13.01.10, 14:00. Reason: laming.. as always.
            Nous Ne Dansos Pas, Nous Sommes Le Danse.!

            Comment


              #7
              Originally posted by Vayne View Post
              $sql = mysql_fetch_array(mysql_query("SELECT msg, user, id FROM chatmsg WHERE uid='".$changable."' ORDER BY id DESC LIMIT 2, 10"));


              or smth...
              thank you thank you thank you thank you thank you sooo much mwaaah Vayne n comando
              PHP Code:
              /* I don't know everything hehe */ 
              Find me on facebook

              Comment

              Working...
              X