# \[Solved\] Store scanned QR code values to database?

**URL:** https://community.thunkable.com/t/solved-store-scanned-qr-code-values-to-database/559888
**Category:** Questions about Thunkable X
**Tags:** solved, beginner, qrcode, stored-variable
**Created:** [April 6, 2020, 7:20pm UTC](https://community.thunkable.com/t/solved-store-scanned-qr-code-values-to-database/559888 "2020-04-06T19:20:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Scalet.t](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Scalet.t](https://community.thunkable.com/u/Scalet.t)
#### Post date: [April 6, 2020, 7:20pm UTC](https://community.thunkable.com/t/solved-store-scanned-qr-code-values-to-database/559888/1 "2020-04-06T19:20:43Z")

</div>

Hello,  
is there a way to store the data scanned by QR Code to a database?  
What I want to do is assign some points to each QR Code and then the user, after logging is, can scan the codes and collect points.  
So the idea would be to retrive the user data from the storage and then save all the data collected by QR code in a database.  
Something like:  
-User1  
-Tot points 15  
-User2  
-Tot points 9  
-User3  
-Tot points 16

I hope to have explained myself well enough 🙂  
Thanks for the help

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [April 6, 2020, 7:32pm UTC](https://community.thunkable.com/t/solved-store-scanned-qr-code-values-to-database/559888/2 "2020-04-06T19:32:09Z")

</div>

like a scavenger hunt idea?

I think a cloud variable would work well for something like this

CloudVar/userID/Score/

when user finds the qr code,

set CloudVar/userID/Score/ as CloudVar/userID/Score/ + 1

---

<div class="post-metadata">

### Author: ![Scalet.t](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Scalet.t](https://community.thunkable.com/u/Scalet.t)
#### Post date: [April 7, 2020, 7:37am UTC](https://community.thunkable.com/t/solved-store-scanned-qr-code-values-to-database/559888/3 "2020-04-07T07:37:09Z")

</div>

Thanks for the support!  
Indeed it is a scavanger hunt app.

I did something like this and it worked.

 ![Screenshot 2020-04-07 at 9.10.52](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/5/557062d7af6d143d7fdcf620f8c6bf6431642226.png)

Any idea if it is possible not to allow scanning the same QR code twice?

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/solved-store-scanned-qr-code-values-to-database/559888/4 "2024-11-08T11:39:18Z")

</div>


