I am trying to create a script that will show users online without using global.asa. I almost have it working besides one thing. I want my sql to delete entries in a table once an entry reaches a certain point. So here is what I have. My problem is it deletes everything in the table.