|


Insert a record
into another table
function BeforeAdd(&$values){// Parameters:// $values - Array
object. // Each field on the Add form represented as 'Field
name'-'Field value' pair
//********** Insert a record into another table ************
global $conn;
$strSQLInsert = "insert into TableName (Field1, Field2) values
(Value1, Value2)";
db_exec($strSQLInsert,$conn);
return true;// return true if you like to proceed with adding new record//
return false in other case }
|