Re: Log transaction for audit

From: Date: Thu, 05 Aug 2004 17:57:02 +0000
Subject: Re: Log transaction for audit
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-192918@lists.php.net to get a copy of this message
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 */

« previous php.general (#192918) next »