Quiz settings form - check box

Quiz settings form - check box

by Jose Velazquez-Torres -
Number of replies: 0

I add a checkbox to the quiz settings using quiz access rule. I want this check box to remain selected, if it was previously, when the user comes back to the form. At the moment I have this code  But Im getting this error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
SELECT * FROM mdl_quizaccess_notwoatsametime WHERE name=
[array (
)]
Error code: dmlreadexception


could someone explain me how to fix this? Im confuse of how to set that last array parameter

Average of ratings: -