i'm new php programmer
Query result - the query result displayed the code for by_channel
for example: No. by_channel
---- -----------
1. S
2. E
3. W
how to build the function to make by_channel is display more meaningful like this:
No. by_channel
---- -----------
1. SMS
2. EMAIL
3. WEBSITE
please help to solve my problem,thank you
how to build the function - PLEASE HELP ME
Moderator: General Moderators
Re: how to build the function - PLEASE HELP ME
Personnally, i did not understand nothing at all
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: how to build the function - PLEASE HELP ME
Code: Select all
function displayByChannel($byChannel) {
switch ($byChannel) {
case 'E' : $returnValue = 'EMAIL';
break;
case 'S' : $returnValue = 'SMS';
break;
case 'W' : $returnValue = 'WEBSITE';
break;
}
return $returnValue;
}
Re: how to build the function - PLEASE HELP ME
Thank you so much 