duan32342 2016-08-16 18:10
浏览 32
已采纳

QR码/ PHP票务系统

I have a QR code that is printed out on a ticket in which once it is scanned it goes to this URL bungeedesign.com/ticketvalidatorv1/index.php the page shows if the ticket is valid or not by checking the date that I set matches today's date (current day).

If the set date does not match up with the current day then the page will display "not valid" so this means that the ticket is no longer valid as it doesn't match the current day. Is there any way to keep the same qr code on the ticket with the same URL and have a new date set and have it check if it matches today while the tickets that were used yesterday/previously still be in a invalid status.

The reason I ask this is due to not wasting tickets that have already been printed, as I would have to change the qr code and URL with a different page containg the new set date while the old tickets would simply still point to the old URL in which would forever display invalid which is want I want but just don't want the tickets to become obsolete once the day is over and there's leftovers.

Sorry if this is a little convoluted!

  • 写回答

1条回答 默认 最新

  • doushou7169 2016-08-16 18:24
    关注

    save your tickets into a table an use their id to make urls and check if they're valid.

    you can also save the person who has the ticket, date range, used date, how many times can be used and ....

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站