A
|
alang 11/26/2007 |
You should be able to use the MYSQL function LAST_INSERT_ID(). The PHP function call for this is mysql_insert_id. |
J
|
Jane 11/27/2007 |
Hi, global $conn; $id = mysql_insert_id(); $str = "insert into info (ID2,Field1,Field2,Field3) values ('".$id."','".$values["Field1"]."','".$values["Field2"]."','".$values["Field3"]."')"; db_exec($str,$conn); |
|
hfg author 11/28/2007 |
Didn't work, I got this message |
A
|
alang 11/28/2007 |
You may need to add code to before AND after as follows:
|
![]() |
Alexey admin 11/29/2007 |
In the Before record addedevent remove all fields that don't appear in main table from $values array. unset($values["Field1"]); |
|
hfg author 11/29/2007 |
You may need to add code to before AND after as follows: BEFORE:
|