- Joined
- Mar 26, 2022
- Messages
- 1
- Reaction score
- 0
So I turned my MySQL database into a string which is being sent to the subpage "/customers" but... I need to sort the data. Currently, I have a script that shows each object's value using fetch (express.js obviously) like {id: 1, username: user, content: test} or {id: 2, username: user, content: test2 and the actual string that is displaying my "stringified" database looks like this [{"id": 1, "username": "user", "content: "test"},{"id": 2, "username": "user", "content: "test2"}], I think you get the point. But back to my main question, is there a way to sent all of the values for a certain value? eg. console.log(data.id) to print out 16 values. Thanks everyone, Alek