BarneyJoe Posted August 13, 2007 Share Posted August 13, 2007 Basically I have a main table of developments we're keeping track of, including a 'Last Updated By' field. There is also a table of users so that people can log in (and hopefully somewhere along the line store the 'current user'). The idea is that when a development is updated the 'Last Updated By' field updates to the name of the user making the change. Can someone point me in the right direction with how to achieve this... Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/64676-solved-automatically-update-a-last-updated-by-field/ Share on other sites More sharing options...
BarneyJoe Posted August 14, 2007 Author Share Posted August 14, 2007 OK - think I've figured out how to do it just using dreamweaver's log in / restrict access behaviours, and simply having a hidden field : <input name="LastUpdatedBy" type="hidden" id="LastUpdatedBy" value="<?php echo $_SESSION['MM_Username'] ?> "> And then inserting this into the table from the update page. It's only a small local application, rather than anything major out in the wild, so it should be OK. Quote Link to comment https://forums.phpfreaks.com/topic/64676-solved-automatically-update-a-last-updated-by-field/#findComment-323511 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.