HI! I'm trying to make an INSERT and obtain inmidiatly the last ID created, but i don't want to run a SELECT to obtein it.
Exist any function to do this? Or something similar?
Thanks!
are you running mysql?
mysql_insert_id()
this function returns the last id created.
http://www.php.net/mysql-insert-id
all above works if you're using auto_increment field type