creating log files out of a delete statement
| From: | Andy B | Date: | Sun, 11 Apr 2004 23:46:13 +0000 |
| Subject: | creating log files out of a delete statement | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183129@lists.php.net to get a copy of this message | ||
hi...
i have a section of a website that deletes records from a mysql table...
right now all the query is is a delete statement but i need to make a "log
file" in this format:
current time::username who executed delete:: deleted(name of record)::delete
completed
or delete failed depending on what happened... i can do all of the log
except dont exactly know how to extract the "Name" field of the deleted
record before it actually gets dumped.. that way i can use it on the log...
any ideas how to do it in the best way??