J
|
Jane 8/4/2008 |
Wim, |
M
|
motfuz author 8/4/2008 |
Okee, thank you. Does it also works with the aliases? Wim, to save calculated values into another table use Before record added/updated events and Save new data in another table action on the [b]Events tab. |
J
|
Jane 8/4/2008 |
Aliases do not save calculated values in the fields. You can only show it on the list/view pages. |
M
|
motfuz author 8/4/2008 |
Aliases do not save calculated values in the fields. You can only show it on the list/view pages.
|
J
|
Jane 8/5/2008 |
Hi, global $conn;$strTableName; $strSQLSave = "insert into _tbl_factuurtotaal (ft_klantkoppel, ft_subtotaal, ft_btw, ft_factuurbedrag, ft_factuurdatum) values ("; $strSQLSave .= $values["v_klantkoppel"].","; $strSQLSave .= $values['Subtotaal'].","; $strSQLSave .= $values['Btw'].","; $strSQLSave .= $values['Factuurbedrag'].",'"; $strSQLSave .= date("Y-m-d",strtotime($values['v_factuurdatum'])); $strSQLSave .= "')"; db_exec($strSQLSave,$conn); |
M
|
motfuz author 8/5/2008 |
Hallo Jane, Hi, MySQL use following date format: yyyy-mm-dd. Also you need to add single quotes around text and date field in teh SQL query. Try to use this code: |
J
|
Jane 8/5/2008 |
Wim, echo $strSQLSave;
|