Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes, it's a database query so you can format it anyway you want using SQL formatting functions. I would keep the formatting simple though such as in the below example.Lets say Member joins to make a profile
When the Auto gen UUID is created as per previous query
Instead of one box of 9 digits
Could you have it split into 3 boxes of 3
ie (4GD) (7YF) (CD9)
So it will be easier on the eye than just 4GD7YFCD9
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
As explained and exampled you can format it quite literally anyway you want. My above example is simply an example and you're welcome to adjust it as needed.however the client requires the UUID to be in a set format of 9 digits and not 13.
There's no reason for such a solution. Unique IDs can be generated with SQL perfectly fine or simple PHP if wanting to use PHP.I have also found this solution on stack flow (look to member scots solution). His solution is using opensll instead however im having trouble getting the code to work. Apparently openssl is the recommended solution for generating random alpha numeric for php. Getting the bugger to display however is another thing all together.
The chances of two IDs being the same generated from UUID is basically none. You shouldn't have to check it against your database.Once the UUID is generate i then need to auto fill it into the UUID field on comprofiler for that client (at the point of registration) but before that it needs to be cross checked against the PHP database to ensure the UUID (however remote) has not been assigned before.
You can generate the unique ID as shown in my previous replies. You can then use CB Query Field to format it on display to be user friendly. In database it could be stored as D34fSD346GLP9 for example, which is fine and best approach, you then can format that using SQL format functions for display on profile using CB Query Field.Prioity is generate UUID - either from uiqid or opensll or script - then select set characters as per the end line clients requirements - check that against the php database - then display in user friendly format on the clients comprofiler profile and finally enable it to be downloaded for send to hard printing.
Please Log in or Create an account to join the conversation.