Help please!!!!
I thought this would be easy but I am obviously doing somethng quite wrong!!
I have two table
Fournisseur Master - Field Id_Num .....
Actions Détail - Field Id_Num, AC_Num, Ac_Date, Ac_Action
When I add a new record to Fournisseur I would like to add new record to Action Ac_Date the current date and Ac_Action with text "Création".
I have set the after record added event with the script
// Parameters:
// $values - Array object.
// Each field on the Add form is represented as a 'Field name'-'Field value' pair
// $keys - Array object with added record key column values
//** Insert a record into another table ****
global $conn, $date, $action;
$strSQLInsert = "insert into actions (Ac_Date, Ac_Action) values ($date, $action)";
$date = date("l/m/Y");
$action = "Création";
db_exec($strSQLInsert,$conn);
After
PHP error happened
Technical information
Error type 256