After posting message in chat room if some one press F5 or refresh the browser , the chat room instantly became flooded with same text!! how can i stop this? someone help please
/* I don't know everything hehe */
Started on the old forum in July 2010 · view the original in the archive · old links redirect here
After posting message in chat room if some one press F5 or refresh the browser , the chat room instantly became flooded with same text!! how can i stop this? someone help please
/* I don't know everything hehe */
Just call the last chat post and use like if ($msg!=$lastmsg){@mysql.......you can use your code here to show your chat post.;}
can you give me somthing details ? "$lastmsg" how can i select from db?
/* I don't know everything hehe */
1stly you should search here.here lots of lavalair mods. and most of them having no problem regarding this. you can take one from here and can solve your problem by own. if you cant then i will sort it out.
Change your Sql To something like:
CREATE TABLE `ibwf_chat` (
`id` int(99) NOT NULL auto_increment,
`chatter` int(100) NOT NULL default '0',
`who` int(100) NOT NULL default '0',
`timesent` int(50) NOT NULL default '0',
`msgtext` varchar(255) NOT NULL default '',
`rid` int(99) NOT NULL default '0',
`exposed` char(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `msgtext` (`msgtext`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
khan89 wrote: 1stly you should search here.here lots of lavalair mods. and most of them having no problem regarding this. you can take one from here and can solve your problem by own. if you cant then i will sort it out.
i don't think this kindof code could be here..i also needed. something like a antiflood for messages in chtrooms (in lava forums exist)
the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com