Here's what I'm trying to do...
1. Insert info into a table that has an ID# which increments automatically.
2. Get that ID# that was generated.
Obviously, I can just run a select where I grab the highest ID#, but I'm concerned that there could be conflictions...
I.E.
Person 1 accesses page that inserts.
Person 2 accesses page that inserts.
Person 1 grabs highest ID
Person 2 grabs highest ID
Now, but people have the same ID. Given how fast these pages run, the chances of this happening are pretty rare, but it's a possibility and I don't want to have to deal with it if/when it does happen.
So, is there another way to do this?
1. Insert info into a table that has an ID# which increments automatically.
2. Get that ID# that was generated.
Obviously, I can just run a select where I grab the highest ID#, but I'm concerned that there could be conflictions...
I.E.
Person 1 accesses page that inserts.
Person 2 accesses page that inserts.
Person 1 grabs highest ID
Person 2 grabs highest ID
Now, but people have the same ID. Given how fast these pages run, the chances of this happening are pretty rare, but it's a possibility and I don't want to have to deal with it if/when it does happen.
So, is there another way to do this?