Question
Data Translation
In Dreamweaver, I'm using the PHP string
>?php echo (fieldvalue) == 'Y'?'Yes':'No'; ?>
To display the word "Yes" when the value stored in the database is "Y", otherwise, defaults to "No". Can this be done where there are more than just two values? For example, "High", "Medium", "Low". What is the syntax?
I can't find this anywhere in any PHP documentation.
--
>?php echo (fieldvalue) == 'Y'?'Yes':'No'; ?>
To display the word "Yes" when the value stored in the database is "Y", otherwise, defaults to "No". Can this be done where there are more than just two values? For example, "High", "Medium", "Low". What is the syntax?
I can't find this anywhere in any PHP documentation.
--
