How to define data from database if i have in database table this as result s,d,r,t ?
Here is the screen from table
https://i.stack.imgur.com/liaGO.png
I can do this if i have only s in database
if($func->data =='s') {echo "This is S";}
I need to define every letters in table and echo result, but how ? if i have more than one letters how i can do this?
This seems to be what you want: