need a lil bit help

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

6 replies · 366 views · started 17 years ago · 1 min read

3 participants
bijaybd Developer · 178 posts #1

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.

synergyx2009 Developer · 86 posts #2

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

|Dont forget to say thanx|

bijaybd Developer · 178 posts #3

yes

anybody know how to code this ???? anyone

bijaybd Developer · 178 posts #4

can anybody there who can help me on this

Anshul Senior · 296 posts #5

bijaybd wrote: can anybody there who can help me on this

$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
}
bijaybd Developer · 178 posts #6

hey anshul bro thanks a lot

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close