Posts by drouga • 53 points
4 posts
-
0
votes3
answers87
viewsA: Quantity return error in deleting the registration of a sale in PHP code
you can define the $cd_produto through a Select, as it did with the quantity, since it is not receiving it via $_POST: $cd_produto = "SELECT cd_produto FROM itens_venda WHERE cd_itens_venda =…
-
0
votes2
answers144
viewsA: How to check if at least one checkbox is enabled
another more "lean" way would be using foreach in a querySelectorAll to check all inputs of checkbox type: let noCheckedBox = false; document.querySelectorAll("input[type=checkbox]").forEach(e=>…
-
2
votes3
answers64
viewsA: Why using 'IN" to filter records along with a subselect returns records that have, in certain columns, equal values
trying to be didactic, the IN [EM] is used to filter according to the following array.. in the case: (SELECT Country FROM Suppliers) this search will return an array containing the list of…
-
3
votes1
answer32
viewsA: My html element (H1) ignores the existence of the elements above it
you set the header tag position as fixed.. header { position: fixed; width: 100%; top: 0; left: 0; background-color: black; border-bottom: 1px solid grey; } define a padding-top for your test class…