I have a number of different things - eg. name, address, birthday.
Each thing is its own “type” in the db. Each user has an entry for the type.
I also have a Type called “Information” that lists all the available types. So The Information table has entries for “Name,” “Address,” “Birthday.”
For a certain user, I want to show all the available types of information, along with their corresponding entries.
User: Jane Doe
Type of saved Information: Address
Fields associated with Address Type: Street, City, State
My problem is I can’t dynamically define a type based on content in the page. So the Information Type is “Address” but I can’t dynamically set the type in any way when I want to show the next bit of information.
Does this make any sense? Any help would be appreciated