Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
if('#nu_cloned_record#' == '1' or '#RECORD_ID#' == '-1'){ //-- this is a new record
nuRunQuery("INSERT INTO recepcounter (extra_field) VALUES ('1')");
$s = "UPDATE reception SET reception_code = '" . mysql_insert_id() . "' ";
$s .= "WHERE reception_id = '#nu_new_record#'";
nuRunQuery($s);
}