I have the following situation, a register with 5 fields being them: Type1, Type2, Type3, Type4 and value
The 4 type fields are combos fields, where you can select the all option, or any other option.
To exemplify:
<select class="form-control" id="tipo1" name="tipo1">
<option value="" selected>TODOS</option>
<option value="1">Opção 1</option>
<option value="3">Opção 2</option>
...
</select>
<select class="form-control" id="tipo2" name="tipo2">
...
So far so good, it's working ok. In MySQL I have the following situation
Id Tipo1 Tipo2 Tipo3 Tipo4 Valor
1 1 Null 2 3 100.00
Note:
To contextualize, this is a goal register, which depending on the situation and value if it has been exceeded, should let pass, or block.
I'm using PHP and MySQL, my problem is to make an appointment if the situation exists in the database, I can not see how to do this. I do not know if I could be clear, and maybe the answer is in front of me, but I already broke my head a lot and nothing came out, so I decided to ask for help. hehe.