I have a set of rules that are taking up a lot of space in my code:
if ($ni == '1' && $status2 == 'Aberto' ){
$url_edit = "<a href='edit_os.php?id1=$id1'>";
}elseif ($ni == '1' && $status2 == 'Em Andamento'){
$url_edit = "<a href='edit_os.php?id1=$id1'>";
And it goes away with several of these ...
I wanted was something like:
if ($ni == 1 && status2 = LISTA DE PALAVRAS)
So if level is equal to 1 and status is equal to some word in list, enter if
.