Page 1 of 1

Is skipping mysql queries possible?

Posted: Wed Jan 25, 2006 6:18 pm
by jaymoore_299
Is there any way I can skip a mysql query if it takes too long?

I have a mysql query that tracks traffic to my site and if the query takes too long then the page simply fails to load. If I put this on the bottom of the page the page loads but I get the headers already sent error message. Is there a way I can skip a query if it takes over, say 2 seconds to finish?