I dont know if this is possible but I have lots of queries in my php website and I would like to log all of the sql statements going through my site, into a text file. It is a hassle to go back through my code and implement a function to do this, is there an oncomplete command or anything I can use without changing mysql_query? Hope this makes sense...