Chat post showing from revers orde(lavalariar help)

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

6 replies · 449 views · started 16 years ago · 1 min read

4 participants
Ponick Developer · 216 posts #1

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

/* I don't know everything hehe */

Find me on facebook

strikingv Developer · 70 posts #2

Ponick wrote: 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)

Ponick Developer · 216 posts #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

/* I don't know everything hehe */

Find me on facebook

comando Developer · 68 posts #4

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

iengioi!

Ponick Developer · 216 posts #5

comando wrote: 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

/* I don't know everything hehe */

Find me on facebook

Vayne Developer · 106 posts #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...

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

Ponick Developer · 216 posts #7

Vayne wrote: $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

/* I don't know everything hehe */

Find me on facebook

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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