4
I have a set of rules that take 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 goes away with several of these...
I wanted something like:
if ($ni == 1 && status2 = LISTA DE PALAVRAS)
So, if level equals 1 and status equals some word in the list, you enter if
.