Related resources for edit in PHP