need a lil bit help

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

    need a lil bit help

    hello there ,
    does anyone no the code in sql how to limit the room enter users not more then 30 i mean to say per room user limit is 30 anyone know the code please let me know thanks .

    and sorry for my bad english.

    #2
    what script you using? and is it for a chat room cos if so you can also do it in php
    sigpic

    |~~Dont forget to say thanx~~|

    Comment


      #3
      yes

      anybody know how to code this ???? anyone
      Last edited by bijaybd; 13.05.09, 14:08.

      Comment


        #4
        can anybody there who can help me on this

        Comment


          #5
          Originally posted by bijaybd View Post
          can anybody there who can help me on this
          PHP Code:
          $users mysql_fetch_row(mysql_query("SELECT COUNT(`id`) FROM `chat_users` WHERE ltime>'".intval(time()-$offline)."' AND room='$rid'"));
          if(
          $users[0] >= "30")
          {
          # error you cnt enter
          }
          else
          {
          # you can enter

          Comment


            #6
            hey anshul bro thanks a lot

            Comment


              #7
              Originally posted by bijaybd View Post
              hey anshul bro thanks a lot
              better to click on thankx button

              Comment

              Working...
              X