23.04.2017 - I guess, the status variable can have only one value at a time, in that case you need to have an else in the if condition if ($s['status'] == 'user'){ .