Hi,
The majority of the problems arise when you try to do something that's not
idiomatic to the language or endemic to the environment. MS Excel PHP do
not co-exist, and you will have a lot of headaches whenever you try using
some M$ product with a non-M$ technology.
However that being
Hi César,
As others have obviously pointed out using MAX() is the way to go. Need I
mention that you can also insert values of your own making into an
auto_increment column as long as they are not already used by some other
record.
In your case since you have old records with IDs of their own