On Friday 06 August 2004 01:47, John W. Holmes wrote:

> Sounds like you just need to write a wrapper for mysql_query() that logs
> what's going on.
>
> function my_mysql_query($query)
> {
>     log_query($query);
>     return mysql_query($query);
> }
>
> and use my_mysql_query() everywhere instead of mysql_query.

If that is indeed what is required just simply use MySQL's own logging system. 
Only feasible if you have control of the MySQL server, MySQL manual for 
details.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Modesty:
        The gentle art of enhancing your charm by pretending not to be
        aware of it.
                -- Oliver Herford
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to