List Info

Thread: Need to somehow delete rows from MySQL after window is closed.




Need to somehow delete rows from MySQL after window is closed.
user name
2006-06-20 22:19:57
ive heard of cron jobs but not exactly sure what they are. I thought about javascript but it isnt really plausible with the popup blockers and antispam softwar, etc. today that is so widespread.

On 6/20/06, xml development <gmail.com">xmlstylegmail.com> wrote:
you could use javascript for that (although it's not the perfect solution)
or use cron jobs to check if the user is still online and if not, to delete the corresponding records

&nbsp; Regards,
&nbsp; Dragos Ardeleanu - web developer
  http://www.xmldev.ro

 

On 6/21/06, Liore <gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lioresgmail.com> wrote:

Hello. I am making a script that stores chats in a mysql database. It
is a web chat application.

What I need done is after the user or operator logs out, it runs a loop
of all the chats (the same way it rusn the loop to display them) except
instead of reading them, it deletes them.

I can do this with the session data which will already be present. I
just need a way to somehow run a piece of code when the user closes his
window.

I was looking at php time functions, and couldnt find a way to
successfully record the time now, and check if the user is still there
in a few minutes, and if not run a script.

I am baffled. Could anyone please help me?









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )