Posts by Rodrigo Fontes • 137 points
16 posts
-
0
votes1
answer91
viewsQ: Picking indexes with equal keys from a non-associative array
How do I pick/group indexes with equal keys of an array, example: Array ( [field_label] => Array ( [0] => Texto [1] => Checkbox [2] => URL ) [field_type] => Array ( [0] => text [1]…
-
1
votes1
answer1050
viewsQ: Grid Bootstrap System: Can . Row inside . col?
I have a question regarding the Bootstrap Grid System, it is valid to use a .row within an element with class .col-x-y in case I want to create more than one column inside that .col-x-y? In short,…
-
0
votes2
answers214
viewsQ: How to store record in new column within wp_users table? (Wordpress)
After the user fills in a registration form, this form goes through all validations, the data needs to be entered in the table wp_users, The function below is doing that role in my THEME: $user_id =…
-
0
votes1
answer706
viewsQ: How to fill in input field and submit form with Curl?
How do I fill in the input and carry out Submit of form of that website https://appear.in/ using Curl? I want to use the video chat system of this site in my project, it is very simple to create a…
-
0
votes1
answer43
viewsQ: Implement 2 search criteria in the query (Wodpress/Mysql)
Within this query how do I add 2 more search criteria $wpdb->postmeta.meta_key = '_viewable' and $wpdb->postmeta.meta_value = 'yes'? $query10 = $wpdb->get_results(" SELECT * FROM…
-
0
votes1
answer282
viewsQ: Foreach multiplying results coming from the database (PHP/Wordpress)
How to do for foreach do not multiply the results coming from the database? I have the following function: $categoriess = (array) get_terms( 'job_category', array('hide_empty'=>false) ); echo…
-
0
votes0
answers191
viewsQ: How to debug a Mysql query?
Is there any way to know what’s wrong with this QUERY? When you perform a query, it displays it on the screen but nothing appears, the var_dump returns NULL, what steps a professional takes to know…
-
5
votes2
answers1943
viewsQ: Using AND inside an INNER JOIN can?
I wonder if it is possible to use AND within a INNER JOIN, example: SELECT * FROM tab1 INNER JOIN tab2 ON tab2.id2 = tab1.id1 AND tab2.camp1 = 'valor' INNER JOIN tab3 ON tab3.id3 = tab2.id2; I gave…
-
0
votes1
answer150
viewsQ: Query is returning an empty array (Mysql/Wordpress)
How do I get the field values meta_value = candidate of this table. I’m using this query, but it’s returning an empty array. $resultados2 = $wpdb->get_results( "SELECT * FROM $wpdb->usermeta…
-
0
votes2
answers302
viewsQ: How to query more than one table (Wordpress)
How do I perform a QUERY in the database in 5 different tables and return the values I want, example: I am performing a search system (my first) and need to capture the following values: Candidate…
-
1
votes1
answer80
viewsQ: How to change table records in the Database after 30 days?
How do I create in PHP a condition that changes the record of a field in a column in the database every 30 days? Example: if ( $valor == 'value_1'){ // Função que altera o registro } value_2 //…
-
1
votes1
answer286
viewsQ: How to print a string array on the screen?
How do I print this SQL query on the screen in string form? $current_user = wp_get_current_user(); $resultado = $wpdb->get_results( "SELECT meta_value FROM $wpdb->usermeta WHERE user_id =…
-
0
votes0
answers31
viewsQ: How to create a new field in the post using "meta_input" (Wordpress)
I’m trying to create a new field in all posts with post_type noo_company, using the meta_input, only that it’s not working. Not registering or saving the values of the field in the database, could…
-
1
votes1
answer1183
viewsQ: How to create Pattern (input mask) with jQuery Validation Plugin?
I need to create a input mask (Pattern) for the type CPF 000.000.000-00 and to CNPJ 00.000.000/0000-00 through the plugin jQuery Validation. What would be the regex to be creating this validation?…
-
0
votes0
answers58
viewsQ: How to create new fields in Wordpress database?
I am developing a system style Infojobs, Catho and CEVIU in Wordpress, based on a Theme already created for this purpose. For a user to register on the site, by default of the theme, he has to…
-
2
votes2
answers8681
viewsQ: How to add and remove required input with jQuery?
I have a select with two option, when I select the first option I want him to show me a input field with the required attribute and when I select the second option I want him to do the same, only by…