I use a RAD called PHPRunner to build Database Applications.
One of the snippets of code I use a lot is to insert a Field Value from a Master Table into an equivalent Field in a Child Table as a "Before Add Event", is as follows: -
global $dal;
$tblDetail = $dal->Table("tblUserRequests");
$tblDetail->Value["ID"] = $data["ID"];
$tblDetail->Param["ID"] = $data["ID"];
$tblDetail->Update();
unset($data["ID"]);
What I would like is help from someone to modify this code so that I can insert 2 or more Field Values in the same operation. So as well as inserting the Value "ID" into the Child Table I can also insert the Value "client".
Many thanks for reading.
Carl.