The Log table is now created in Mysql, which is filled with the events of the tribes (INSERT) from other queries in the system.
The table contains information that needs to be expanded, for example, now the trigger ( INSERT AFTER ) has the form:
BEGIN INSERT INTO log Set LogTime = NEW.ArticleTime, LogIdNote = NEW.idArticle, LogName = NEW.ArticleName, LogType = 1, logTypeCategory = NEW.ArticleCategory, LogIdUser = NEW.ArticleToUserID; END The problem is that for the trigger you need to add a couple more fields that are not in the NEW operator. For example, username:
LogIdUser = NEW.ArticleToUserID; .... LogUserName = 'Username from current session PHP' Who has any suggestions and ideas?