View Single Post
Old 09-30-2012, 07:53 PM   PM User | #8
Keleth
Senior Coder

 
Join Date: Jun 2008
Location: New Jersey
Posts: 2,354
Thanks: 45
Thanked 247 Times in 244 Posts
Keleth is on a distinguished road
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?
Keleth is offline   Reply With Quote