Pass the username as a parameter to a stored procedure and insert the new record as: insert into auction_log (field1, field2, ..., UserName) values (@Field1, @Field2, ..., @UserName) or similar should do it. It's been a while since I used MySql but I think that should work.
me, me, me