your update is based on the projectuserID column, but you are passing in the UserID instead.
i edited the update page so that it properly passes the project ID to update the correct record:
<input type="hidden" name="projectuserID" value="<?php echo((isset($_GET['project_id']))?$_GET['project_id']:""); ?>" />