gaptrast
Member
- Messages
- 123
- Reaction score
- 0
- Points
- 16
I have a site where users can use an app where everything they do is stored in values. I want to let users save what they have done, and share it with a generated link. Like example.com/gUy87f
The values will be stored in a database, and somehow the unique string (gUy87f) attached to them. So when a user loads the page (example.com/gUy87f) all values show up in the web app.
I have seen this at jsfiddle.com. When you save a document it automatically makes a unique string for you. Also, when you update the document, jsfiddle will add an auto incremeting /1 after the unique string. like example.com/gUy87f/1, example.com/gUy87f/2 and so on...
I am very fresh when it comes to SQL and databases, and don't know everything about it. Therefore I have some questions:
The values will be stored in a database, and somehow the unique string (gUy87f) attached to them. So when a user loads the page (example.com/gUy87f) all values show up in the web app.
I have seen this at jsfiddle.com. When you save a document it automatically makes a unique string for you. Also, when you update the document, jsfiddle will add an auto incremeting /1 after the unique string. like example.com/gUy87f/1, example.com/gUy87f/2 and so on...
I am very fresh when it comes to SQL and databases, and don't know everything about it. Therefore I have some questions:
- Should the data expire after a certain amount of time or when it has not been used? Does it expire at jsfiddle (etc)?
- How should my database be structured? It is fairly simple data. Should it be like this: id || uniquestring || data1 || data2 (where id is 0,1,2,3..) ?
- Is it a good idea to let users create as many copies and saves on my server as they want? Is that something to be afraid of? Do the proffesional websites do something that I should do too?
- What should I google for when searching for this (like shorthand pagemaking)?