On Saturday 16 February 2002 07:35 pm, you wrote:
> Is it possible to get the AUTO-INCREMENTed ID's value while doing an INSERT
> and have the value INSERTed to another table in the same FORM ?
>
> Raju

mysql_query("insert whatever");

$insertid=mysql_last_insert();

Then you use this value for your other insert.



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

Reply via email to