|
I checked if it existed because I would need the ID returned. When I insert, I use the last insert ID to insert the registration row, and when the user already exists, I extract the voterID it already has. Is there some other way to do it?
And I definitely get that the loop adds a lot to the script; but given I have to get each users already existent ID or their newly created one, how can I achieve this without a loop? Or a more barebones loop?
|