0
SELECT IF(approved = 1,'Yes','No') AS Status
FROM support;
2
  • Why down votes? if you know the answer? Commented Jan 12, 2017 at 10:49
  • @a_horse_with_no_name, Thanks for your help. Commented Jan 12, 2017 at 11:42

1 Answer 1

1
$supportTable = TableRegistry::get('Support');
$support = $supportTable->find()->select(["status" => "IF(approved = 1,'Yes','No')"])->toArray();

You can try this one

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.