unique_field_value_with_id |
Yes |
Returns FALSE if the value is already used in the target table for a specific row.
- Target table name can be one of
- a literal value 'tbl_target_table'
- the name of a constant 'TABLE_TARGET_TABLE'
- the name of a property, 'Tables::TABLE_TARGET_NAME'
- Target column is the name of the column that the data is destined for
- UID_col_name is the name of the primary key, usually "id"
- Optional - If used, this will be the input name for the current record ID. Defaults to "id".
When searching the table for a value, any row where the id column matches the id value will be ignored.
The value of the ID for comparison should be in $GLOBALS['unique_with_id'][field_name]['id_value']. If it is not there it will default to "0"
|
unique_field_value_with_id [target_table, target_column, UID_col_name, Input name for the UID ]
The value 'field_name' relates to the name of the input field that this rule is for |