- Posts: 103
- Thank you received: 5
Is ticket_qrcode or registration_code always unique?
- Russell Noble
- Topic Author
- Offline
- Premium Member
Less
More
3 years 10 months ago #134629
by Russell Noble
Is ticket_qrcode or registration_code always unique? was created by Russell Noble
Hi Tuan,
we need to create a plugin which provides access for a registrant to print out certain documents from a website.
I want to include in the URL an identifier so we know who it is. Is the ticket_qrcode or registration_code guaranteed to be unique and can be published via email to a registrant so we can use that as the identifier?
In the database they allow NULLs and are not set as a unique by INDEX. I checked and we have some NULL ticket_qrcode (older entries) but both fields appears to be unique, but not sure if that is always true.
Thanks,
Russell
we need to create a plugin which provides access for a registrant to print out certain documents from a website.
I want to include in the URL an identifier so we know who it is. Is the ticket_qrcode or registration_code guaranteed to be unique and can be published via email to a registrant so we can use that as the identifier?
In the database they allow NULLs and are not set as a unique by INDEX. I checked and we have some NULL ticket_qrcode (older entries) but both fields appears to be unique, but not sure if that is always true.
Thanks,
Russell
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 10 months ago #134630
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Is ticket_qrcode or registration_code always unique?
Hi Russell
Both are unique. However, I suggest to use registration_code, it's generated for each registration record. ticket_qrcode as you can guess, could be null for registration records not not have PDF tickets generated
Tuan
Both are unique. However, I suggest to use registration_code, it's generated for each registration record. ticket_qrcode as you can guess, could be null for registration records not not have PDF tickets generated
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.