That feature used on tikiwiki.org to store chat on #tikiwiki is rather specific to my environment. Anyway, here is the source code.
Multiple select
launched in crontab:
21 3 * * * www-data /usr/bin/php4 -q /home/mose/var/tikicvs/irclog.php -1 | mysql -uxxx -pxxx tiki
the db file
those files are rather specific to my personnal environment. anyway they can be useful.
That file goes in templates/ dir