verdeandrea Posted March 20, 2014 Share Posted March 20, 2014 Hi guys, I can't get the reason of this error. This is my code $s = $pages->get('1689'); $answer_text = "Yes"; $answers = $s->find('answer_checkbox_repeater.answer_checkbox_text%=$answer_text'); "answer_checkbox_repeater is a repeater field" And i get Fatal error: Exception: Unknown Selector operator: '%=$' -- was your selector value properly escaped? I've tried to change the operator to "=", or "~=" or "*=" but i get the same error. Link to comment Share on other sites More sharing options...
adrian Posted March 20, 2014 Share Posted March 20, 2014 I think the issue is just your single quotes - it is looking for "$answer_text" as a string, rather than "Yes". EDIT: Have a good read through some of these links to get a better understanding of the differences between single and double quotes: https://www.google.com/search?q=php+single+vs+double+quotes 2 Link to comment Share on other sites More sharing options...
verdeandrea Posted March 20, 2014 Author Share Posted March 20, 2014 Yes! That's it! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now