How would I create something so I can enter something, then someone else can get the id of the message i entered and see what I wrote? how would this be possible if it is, dont spoon feed me just tell me how I could
You can use a database like mongo
2 Likes
But how could I let someone access a message with an id?
You can search the database for that id and return the results
2 Likes
All MongoDB items get assigned an id called _id
so you can use that. Use a GET request with express and use Mongoose to search the paramater they gave in the GET request and then show the message
3 Likes
MySQL:
SELECT ID, 2, 3 FROM table WHERE ID="yourIDhere"
1 Like
Yes I saw the thread
1 Like