Hi,
I have 2 tables named "master" and "slave".
I used phprunner to create 2 menus. User can enter the field in "slave" menu and "master" menu will automatically update with record.
When user click "edit" button in "slave" menu and changed the information, the "master" menu columns' value will also change accordingly. I used the following code by adding Param["identifier"]=$values["identifier"] and it works.
----------------------------------------------
In events>slave>Edit page>After record updated
----------------------------------------------
global $dal;
$dal_table = $dal->Table("master");
$dal_table->Param["identifier"]=$values["identifier"];
$dal_table->Value["name"] = $values["name"];
$dal_table->Value["address"] = $values["address"];
$dal_table->Value["age"] = $values["age"];
$dal_table->Update();
------------------------------------------------
However, I would like to update the column in "master" menu only if there are 2 columns' value match. I tried adding another Param["value"] but it is not working.Can anyone please kindly help? Thanks
-----------------------
global $dal;
$dal_table = $dal->Table("master");
$dal_table->Param["identifier"]=$values["identifier"];
$dal_table->Param["name"] = $values["name"];
$dal_table->Value["name"] = $values["name"];
$dal_table->Value["address"] = $values["address"];
$dal_table->Value["age"] = $values["age"];
$dal_table->Update();