Validation of a record uniqueness
| Parameters | |||
|---|---|---|---|
mixed
|
$value |
The value to check for uniqueness |
# |
string
|
$table |
The table name without prefix |
# |
string
|
$field |
The field name in the table to check |
# |
int
|
$id = 0 |
The optional ID field to be excluded |
# |
| Returns | |
|---|---|
boolean
|
TRUE if the value already exists in the table; otherwise FALSE |