title: Adding a prefix to the value of a QR code via a mobile app
body: <p>I've built a ticketing system with PHP &amp; MySQL that generates a barcode for each ticket. The current set up for scanning tickets is a simple web form and a USB barcode scanner. When a barcode is scanned, it submits the barcode's ID to the form and if it matches an ID in the database then the ticket is valid. </p>
  
  <p>I'd now like to be able to scan tickets with a mobile device and am wondering which is the best route to go down. How I envisage it working is the the barcode (or QR code) will have a value like "9783546" and when it's scanned, it will point to a URL like <a href="http://www.myscanner.com/checkticket.php?id=9783546" rel="nofollow">http://www.myscanner.com/checkticket.php?id=9783546</a></p>
  
  <p>(Perhaps this is not the best solution, if not please let me know.)</p>
  
  <p>Another caveat is that I'd rather not hardcode the URL in to the qrcode itself, as it's liable to change. </p>
  
  <p>I know there are QR code libraries for building scanners for iPhone and Android. Is there an advantage of using one over the other? Is pointing to the url like above the best way to handle this? Is there a prebuilt scanner that allows something like this already? </p>
  
  <p>Apologies for the broad question, some points in the right direction would be greatly appreciated. </p>