<?php
$sql= "SELECT
CASE WHEN $winners > 25 THEN 'Dothis() 😢'
WHEN MOD((entrantID -10), 98) = 0 THEN 'Dothis2()'
WHEN MOD((entrantID -10), 49) = 0 THEN 'Dothis3()'
ELSE 'Dothis4()'('
END AS WHATEVER
?>
Hello all
I want to know how do I call a function from within this sql code.
Where the Dothis() functions are, I want function calls to be there, but i'm insure where or how to put them as I've never worked with Select Case when clauses before, and the documentation is mostly pseudocode. So how do I do a function call here?
Also, what does the END AS SelectName do? What purpose does it serve?
Last question, are the '(' in the proper places?
Thank
MK