+ 2

How to have a database of my website

For example i made a website where the user gives input and the text input gets shown in a list. But when i refresh the page, the list gets resetted. How can i store all the inputs forever?

7th Jun 2020, 1:17 PM
Asef DianšŸ‡§šŸ‡©
Asef DianšŸ‡§šŸ‡© - avatar
4 Answers
+ 2
Asef DianšŸ‡§šŸ‡© hi, If you want to keep it on the client side, you could make use of localStorage or indexedDB. https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB On serverside then you'll have to deal with databases language as suggested by Muhammadā“‚ļøšŸ„‡šŸ›”ļøāœ”ļø
7th Jun 2020, 7:38 PM
EmmanueLZ.
EmmanueLZ. - avatar
+ 2
U should use any language of database like SQL , My SQL, SQL lite3, postgree SQL
7th Jun 2020, 1:21 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
what have you done so far
7th Jun 2020, 6:10 PM
Logomonic Learning
Logomonic Learning - avatar
7th Jun 2020, 6:31 PM
Asef DianšŸ‡§šŸ‡©
Asef DianšŸ‡§šŸ‡© - avatar