Hello,
In some forms that contain calc elements i see this notice:
"Notice: An error has occurred with a calculated field - please inform the web-site owner."
I verified the code and doesn't seems to be wrong, i get the values. For example, i don't understand what is wrong with this syntax:
I also tried this code, same problem:
Thank you
In some forms that contain calc elements i see this notice:
"Notice: An error has occurred with a calculated field - please inform the web-site owner."
I verified the code and doesn't seems to be wrong, i get the values. For example, i don't understand what is wrong with this syntax:
Code:
$db = JFactory::getDBO();
$db->setQuery("select MAX(id) +1 from contracte_info_generale");
$theid = $db->loadResult();
return 'TMAPFA nr '.$theid;
I also tried this code, same problem:
Code:
$db =JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('MAX(id) +1')
->from('contracte_info_generale');
$db->setQuery($query);
$theid = $db->loadResult();
return 'TMAPFA nr '.$theid;
Thank you