It's always the same. You read the list from tinyDB, you remove the item from the list, you store again the list into tinyDB.
In your blocks you are reading data from tinyDB into a local variable "list", adding an element to "list", storing again "list" in tinyDB....and removing an item from "userData" variable....
The Userds is the list of users the been created through the apps. so it's saving a data with the nametag of the list + username. so it would be connected to each account
Yes. lmao sine when im trying to combine then as one it's not working, so I decide to make it one to one' it just to display the items that user add cart. if I combine then as one when user add to cart with different tag it won't display unless the 1st one have a data on it. so that's what i'm end up HAHhaha
So i have 2 tag for the username.
Here's how it work.
the username that been created would be saved in 2 tags
1st tags - where all username that been created was saved.
2nd tags- where only 1 data can be saved. this also i'm using when I log in.
So when user log in, the system would check is the username that been save in the 2nd tags was saved in the 1st tag, if it was in there it would display all data that been saved to that username.
so it would go like this
Carts["user1"]
I don't know if this complicated or not but it works HAHha.
Ok. Anyway, what is the list from which you want to remove an item? How do you read it from tinyDB?, how are you deleting the element and how do you save it again?
So, I'm trying to remove an item in list tag "carts", but before removing it i want to save it first to the CheckOut tags. this how it read in tinydb ["Chicken.jpg", "Chicken", "100.00"]
But what do you have in "UserdData"? because the two ways to delete elements that you are using do not make sense....the first way you are removing always the first element of the list...the second way...I don't know what do you want to do...
Can you paste here the content of UserdData after to be read from tinyDB?
It's not working at all, I don't know why but this should be delete that specific data that been selected by the user in tinydb then store that remove data in the other tinydb but that's not working