I need to build a leads aggregating system. In general what the system would do is storing the data a client sends from a landing page (name, phone, email etc).
The interesting part is that I don’t know ahead what fields each landing page will contain. So, one landing page might need name, phone and email, while other landing page will gather email and num_of_kids. I will also need to save the caption for the field somehow – because I need to display num_of_kids as Number of Children. I was thinking of simply storing the whole thing in one field as a JSON object, but that felt cheap and wrong (and it would suck sorting and selecting it).
I’m open to suggestions and workaround ideas (the solution doesn’t have to be strictly MySQL).
EDIT: I’ve decided to use MongoDB for that project. At the moment it looks like one of the best decisions I’ve made this year.
Your problem can be solved with schema-less, NoSQL database like MongoDB
Further reading:
NoSQL
P.S. Good luck with it, and have fun 🙂