I have a function where the content is main or not so I have a field in the db that is a set with the possible values true or false.
When I call the function and pass the value "true" it is converting it to a 1 and then my query fails because I use WHERE main LIKE "$main" and it should be "true" instead it is turning out WHERE main LIKE "1"
Is this just something I should not do and I should be going about this a different way? Is there a way to force it not to change it like this?
Thanks