Re: Getting last record ID created from DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff wrote:

Is there a way to get the last Record # created by the DB.
...

what code could I add here to make the following line work?

echo "REMEMBER your USER ID# you will need it when creating Characters!! It is: $user_id"; <----- I want to show the "user_id" just created here.

Thanks in advance!

The function mysql_insert_id will return the previous id inserted.

http://us3.php.net/manual/en/function.mysql-insert-id.php

Janet



--
Janet Valade -- janet.valade.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux