echo $state; //debug
switch($state){
case "Sleeping":
$label = "Is Sleeping";
case "Running":
$label = "Is Running";
default:
$label = "Could not retrieve state";
}
$state is filled from an SQL database (Enum type), the echo message prints "Sleeping", but the $label is filled with the default value