Hi,
Got the following Parse error while I've used the following Conditions in CCv5:
<?php
$user =& JFactory::getUser();
?>
<?php
return array(":Risicos.id NOT IN (SELECT id
FROM 4Beheersmaatregel WHERE 4Beheersmaatregel.user_id = $user->id)" ORDER BY Risicos.id);
?>
Parse Error:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /public/sites/www.risman-tools.nl/administrator/components/com_chronoconnectivity5/chronoconnectivity/controllers/lists.php(245) : eval()'d code on line 6
How to fix it?
Got the following Parse error while I've used the following Conditions in CCv5:
<?php
$user =& JFactory::getUser();
?>
<?php
return array(":Risicos.id NOT IN (SELECT id
FROM 4Beheersmaatregel WHERE 4Beheersmaatregel.user_id = $user->id)" ORDER BY Risicos.id);
?>
Parse Error:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /public/sites/www.risman-tools.nl/administrator/components/com_chronoconnectivity5/chronoconnectivity/controllers/lists.php(245) : eval()'d code on line 6
How to fix it?
Hi smurf007,
Fix the quote problem in line 6
Bob
Fix the quote problem in line 6
return array(":Risicos.id NOT IN (SELECT id
FROM 4Beheersmaatregel WHERE 4Beheersmaatregel.user_id = $user->id)" ORDER BY Risicos.id);
Bob
Please note that sub queries are not supported, so this may or may not work even if no errors are generated, you can enable and check the debug for the final generated SQL statement!
Regards,
Max
Regards,
Max
This topic is locked and no more replies can be posted.