SQL - PHP last id record number?

  • Thread starter Thread starter Luis Q
  • Start date Start date
L

Luis Q

Guest
I have a sql db, and I'm trying to get the last row id (i'm using auto increment for the id column).

I'm able to get the last row id, but not the total of ids (including the deleted ones).

What I'm trying to get it's the id that it's going to be next added. So I can save a file with that name. but when I delete the last record, then I have troubles with the last id...
 
Back
Top