Hello again.
I have a calc element with this codes below. List views and individual form view shows the correct result for that calc element. But when the new entry (form) is created, this error shows up.
Any help would be appreciated. Thanks
I have a calc element with this codes below. List views and individual form view shows the correct result for that calc element. But when the new entry (form) is created, this error shows up.
I am searching through the forum but hasn't found the correction solution yet.0 syntax error, unexpected ')'
Any help would be appreciated. Thanks
PHP:
if (!empty('{book___btid_raw}')) {
$myDb = FabrikWorker::getDbo(false, 2);
$myQuery = $myDb->getQuery(true);
$myQuery->select("tnamee")->from("teacher")->where("tid = ". {book___btid_raw});
$myDb->setQuery($myQuery);
return $myDb->loadResult();
}
return '';