Jump to content

Auto increment


pedrobcabral

Recommended Posts

I have a table with the ID auto incremented.

Imagine this problem:

 

I delete ID 10 and photo 10.jpg from the pictures folder. Later on I add a new entry that will go for ID 11 but the photo will go for 10.jpg - that's because I add the photo name to the last entry from the id table.

 

Is there anychane to know the auto_increment value? So I would sync the ID number with the foto number everytime.

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/47890-auto-increment/
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.