Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Extract information from QR Code, filter it and add to mysql db using php

I want to ask how to add data extracted from scanned QR code into MYSQL DB using PHP. It will be a registration form in which the fields will be filled after filtering out the information extraced from the QR code as per the field.

1 Answer

QR Codes essentially point to a pre defined url, so what you could do is build out the url with the variables in the query string for example


Then in your code you would just need to look for these query string keys and get the values.