Answer the question
In order to leave comments, you need to log in
How to log requests, actions in a separate table?
Hello, is it possible to do logging (recording admin actions) directly into a separate database table? I tried it with a trigger, but somehow it didn’t work out very well, here is an example
BEGIN
INSERT INTO `log` (`name`) VALUES (CONCAT(NEW.`login`),
NOW()) ;
END
Can you give an example too? Everywhere there are examples of writing to a log file, but for me it is in a table.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question