I am using Zend_Validate_Db_NoRecordExists
detailed in the link below to check if a record exists before inserting it.
I have no issues with the basic code and have got it working fine, what I need to do next is add a WHERE clause to exclude records where the field recordDelete = 1.
Zebd_Validate_Db_NoRecordExists
Here is a snippet of the code where I'm using this:
$validator = new Zend_Validate_Db_NoRecordExists($options);
$form->getElement('productSTOCKCODE')->addValidator($validator);
Thanks