Posts by Gomes • 75 points
5 posts
-
1
votes3
answers913
viewsQ: Checkbox Fields From Database
I have 3 tables, respectively: Vehicles veculo_id, veculo_name. Accessories acessorio_id, accessorio_name Vehicles veculo_id accessorio_id On the vehicle registration page the fields accessories…
-
2
votes2
answers198
viewsQ: How can I do a validation to check if a variable is empty and is a string in php
I want to do a denial check and then else the fix. How can I? Take the example! <?php $a = ''; if(!$a && !is_string($a)): echo 'False'; else: echo 'True'; endif;…
-
1
votes0
answers85
viewsQ: How can I relate 3 field to Wordpress post?
I have a custom field whose name is type of vehicle. This field gets the guys car or motorcycle. I made a combo select with jQuery which, when selecting the type of vehicle, is completed with the…
-
2
votes0
answers32
viewsQ: How do I get a value of true or false from the database in Wordpress before the loop
I have a custom field to display a slide that is a boolean field! I want to make a condition before the loop if the result is true to display the slide if it is false I want this condition to be…
-
0
votes3
answers278
viewsQ: SQL query in wp_postmeta table
How to make an SQL query in a table that has the following fields: SELECT meta_key,meta_value from wp_postmeta where meta_key = 'cidade' and meta_key = 'bairro' the fields of the table wp_postmeta…