Posts by Domingos • 41 points
3 posts
-
1
votes2
answers346
viewsA: Search in mysql database with multi-level php
Try building the query. Like this: <?php $sql = "SELECT "; $sql .= isset($_GET['tipoManifestacao']) ? 'tipoManifestacao' : isset($_GET['concessionaria']) ? 'concessionaria' :…
-
1
votes2
answers514
viewsA: How to register lack in electronic point system?
If there was no point record on the day and had no record of anything else that abolishes its lack (vacation, holiday, weekend, off, future period, etc.), consider via application that it is a…
-
2
votes2
answers302
viewsA: Check if field is equal to zero in the database
Try the following query: SELECT campos FROM tabela WHERE campo = 0 -- Caso o campo seja numérico SELECT campos FROM tabela WHERE campo LIKE '0' -- Caso o campo seja varchar To reference in PHP, you…