this new version bugs bugs and bugs
php16
{var:php16}
switches
i wanted to upload images here but i think there is a bug in forum as well i couldnt upload 🤣
php16
$app =& JFactory::getApplication();event swither data provider
$db =& JFactory::getDBO();
$query = "
SELECT COUNT(*)
FROM `os5pk_chronoforms_data_xxxx`
WHERE `no_DI` = '{$this->data['no_DI']}' or `correo` = '{$this->data['correo']}';
";
$db->setQuery($query);
$count = $db->loadResult();
if ( $count > 0 ) {
return 'registered_ID';
} else {
return 'look_codigo';
}
{var:php16}
switches
registered_ID and look_codigothis php return in debug always look codigo
i wanted to upload images here but i think there is a bug in forum as well i couldnt upload 🤣
Hi samir,
Please test with the new update ?
Also you can modify your code to do a quick test, use this:
Best regards
Please test with the new update ?
Also you can modify your code to do a quick test, use this:
pr($count);to check the count value directly!
Best regards
right new version looks better
before ,it returned 0 therefore event switcher worked correct
however problem was in php
it appearded "and parameter" instead of "or parameter", even i am sure i put "or", this where i copied and pasted to the forum.
now changed and to or, it returned 1
so bug is gone
thanks
before ,it returned 0 therefore event switcher worked correct
however problem was in php
it appearded "and parameter" instead of "or parameter", even i am sure i put "or", this where i copied and pasted to the forum.
now changed and to or, it returned 1
so bug is gone
thanks
This topic is locked and no more replies can be posted.