Jump to content

Duplicate entry help


Incredinot

Recommended Posts

Hi..

 

So im currently working on a script..

My script generates a "oid" based on timestamp.

 

Ive made the "oid" field unique in my db, so if i do a quick refresh i get the message:

 

Duplicate entry '1283195988' for key 'oid'

 

Is there some way i can check if its a dublicate, and if it is + it with 1 or something?

Link to comment
https://forums.phpfreaks.com/topic/212099-duplicate-entry-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.