dimoss
Well-Known Member
Hi,
I use the following validation to validate the uniqueness of a value:
However the code doesn't work in F3. On the contrary works ok in F2.
Any ideas?
Thanks in advance.
Denis
I use the following validation to validate the uniqueness of a value:
PHP:
$a = (int)$formModel->_formData['fab_iperories___etos_raw'];
$b = (int)$formModel->_formData['fab_iperories___minas_raw'];
$c = $data;
$query = "SELECT count(*) FROM fab_iperories WHERE am = $c AND etos = $a AND minas = $b";$db = & JFactory::getDBO();$db->setQuery( $query );$x = (int)$db->loadResult();return $x === 0;
However the code doesn't work in F3. On the contrary works ok in F2.
Any ideas?
Thanks in advance.
Denis