I am currently working on a school event system where each student has their own bar-code upon registration
I have a column id
in my table which is auto incremented and to make my barcode unique I generated a random integer and I want that random integer to concatenate with the auto generated id.
I would like to know how am I going to get the value of the id upon registration to concatenate the random integer to their IDs
I would like to have an idea from you guys
Thanks a lot
Here is how I insert my data from the database:
The thing is, I want the $temp
to concatenate to the latest id that is auto incremented