You can use the switch & case statement.
See http://www.w3schools.com/php/php_switch.asp
Read your database variable first as per the example.
See http://www.w3schools.com/php/php_switch.asp
Read your database variable first as per the example.