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 ....

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

报告相同问题?

悬赏问题

  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私