Posts by Gabriel Selga Vital • 175 points
9 posts
-
0
votes2
answers971
viewsA: How to take the value of a php variable and pass in a java script input
You can do it like this: <script> var meusdados = '<?php echo $minhavariavle; ?>'; </script>
-
0
votes2
answers54
viewsA: Running ajax within a table
your query has multiple JOINS and this makes there are multiple returns per record found, what you need to do is regroup the return data correctly. Some GROUP BY may help, but I would regroup the…
-
1
votes1
answer84
viewsA: Input Hidden receive $.ajax array
Cannot echo on Arrays, echo command is only for Strings. Try with var_dump() or print_r()
-
1
votes1
answer22
viewsA: Data is not being deleted from the database
1- Which return you are getting from this operation? 2- DELETE operations should always be done with the PK field of the table for security reasons. This cod_cli field and the PK of your table? If…
phpanswered Gabriel Selga Vital 175 -
0
votes2
answers86
viewsA: Selector does not accept value=""
Forehead like this: $('#seuSelect').empty(); *Note: Use the jQuery
-
2
votes1
answer48
viewsA: Error while performing data deletion
The Event Bind is done in the Page Load, when you add elements in the DOM after Load starts, the Event Bind has already been done and does not take the new elements added. But jQuery already…
-
2
votes1
answer131
viewsA: Recursively relate items from an array to PHP
I did not find anything native but I solved this way, it worked for me! $arr_ovp = [ 'Cor' => ['White','Black','Green','Blue','Red'], 'Tamanho' => ['G','XG','XXL','XXG'], 'Manga' =>…
phpanswered Gabriel Selga Vital 175 -
3
votes1
answer131
viewsQ: Recursively relate items from an array to PHP
I wonder if there is any native PHP function to relate all array items to all other array items, example: $arr['a'] = [1,2,3]; $arr['b'] = [4,5]; $arr['c'] = [7,8,9,10]; To get the following result:…
phpasked Gabriel Selga Vital 175 -
2
votes1
answer10380
viewsQ: How to create a robot with PHP?
What is the best way to create a robot in PHP? The goal from robot, is to access a URL, with login and password, enter data in certain fields, submit this data, and interpret the result on screen.…
phpasked Gabriel Selga Vital 175