Re: [PHP] MySQL - PHP combined log

2002-07-22 Thread 1LT John W. Holmes
Or you can use the error_log functions within your function, instead of fopen/fwrite/fclose. ---John Holmes... > The easiest way to do this would be to write a wrapper function to > mysql_query() that does the writing to the log file and also executes the > query and returns the result set. > >

Re: [PHP] MySQL - PHP combined log

2002-07-22 Thread 1LT John W. Holmes
The easiest way to do this would be to write a wrapper function to mysql_query() that does the writing to the log file and also executes the query and returns the result set. function my_mysql_query($query) { //assuming file would already be open... global $fp; $return = mysql_query(