On Fri,  2 Feb 2001 14:13, Sandeep Hundal wrote:
> Hi All,
>
> just a quick question. Say my script is inserting values into a
> database, which has an autoincremental id. Now I usually send out a
> mail also with the contents of the inserted stuff. The only problem
> is that of the ID field. How can I get the script to determine what
> id number was given to that row?
>
> thanks
>
> /sunny

If you are using mysql, mysql_insert_id will do that for you.

-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to