Jump to content

[SOLVED] Get Id from database


jkkenzie

Recommended Posts

Hi!

Is it possible to get from the database the id(if my field was id and its a PK and Auto-increment) value that is going to be used in the next record to be saved.

 

I would like to save my image with the id as the name. This is to ensure the pictures folder where it is uploaded have unique names , and that they are not replaced by other pictures with same name.

 

regards,

Joseph

Link to comment
https://forums.phpfreaks.com/topic/130858-solved-get-id-from-database/
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.