![]() |
hax0r 12/7/2006 |
Hi, I have a chart you date composed by the followings fields: table dati id name last name I would like that after the insertion the id and the last name are saved in a new chart that calls Table prova id last name is correctly this function: function AfterEdit()
|
M
|
maxcolo author 12/7/2006 |
Because this function don't work? function AfterAdd()
|
![]() |
Sergey Kornilov admin 12/7/2006 |
Use BeforeAdd or BeforeEdit functions. |
M
|
maxcolo author 12/7/2006 |
But if I use: function BeforeAdd(&$values)
|
M
|
maxcolo author 12/8/2006 |
Resolved....this function BeforeAdd(&$values) { global $conn; $strSQLInsert = "insert into prova (nome, cognome) values (".$values["nome"].",".$values["cognome"].")"; db_exec($strSQLInsert,$conn); return true; } |
J
|
Jane 12/8/2006 |
Max, $strSQLSave .="'". $values["cognome"]."'"; |
M
|
maxcolo author 12/8/2006 |
Max, did this error occur when you remove all events?
|
![]() |
Alexey admin 12/11/2006 |
Max, |
M
|
maxcolo author 12/11/2006 |
I ask excuse if they are a "testone". But I have need to understand the |