Posts by heitor_deep • 81 points
9 posts
-
1
votes1
answer57
viewsQ: Nested Relationships
Guys, I have a question regarding the nested relationship. When my code gets that way: class CategoryListSerializer(ModelSerializer): class Meta: model = Category fields = ['id', 'name',…
-
0
votes2
answers288
viewsQ: Print repeated strings inside the List in Python
I have a file that has several words like: apple, grape, dog, etc. I made a random to get 1 random word. The intention is to play the hangman, the user type a letter, for example: 'r'. Then the…
pythonasked heitor_deep 81 -
1
votes1
answer35
viewsQ: Take data from option
People ask me a question. How do I get 2 values of an option in php? example : <option value="pegar aqui">(Pegar aqui)</option> I have tried using foreach but not getting it only comes…
phpasked heitor_deep 81 -
1
votes1
answer165
viewsA: function move_uploaded_file
I managed to solve the problem follow the code below // Busca os dados para o envio da imagem ao servidor. for ($i = 0; $i < count($imagem['name']); $i++) { // Verifica se o arquivo já existe no…
phpanswered heitor_deep 81 -
1
votes1
answer165
viewsQ: function move_uploaded_file
I’m having difficulty to do multiple uploads,in the move_uploaded_file command it’s only sending one. foreach ($imagem['name'] as $key => $fotos) { if (isset($tipoAlbum)) {…
phpasked heitor_deep 81 -
1
votes0
answers56
viewsQ: Separate array in php
Guys I’m trying to separate the array but it all comes together in this way fernandohenriquelopes I wanted to separate them so I can make multiple Insert in the bank the code is like this // aqui…
phpasked heitor_deep 81 -
0
votes3
answers115
viewsA: Checkbox with PHP
Galera managed to solve my problem follows the code below <?php if (isset($_POST['ok'])) { // checkbox ta assim name="servico[simples] servico[hena]...." no value ta o valor total. $servicos =…
phpanswered heitor_deep 81 -
-1
votes3
answers115
viewsQ: Checkbox with PHP
The site has 3 checkbox, but I will implement much more. The problem is that my code is not very cool, because I need to calculate the total value Code is like this: $hena = filter_input(INPUT_POST,…
phpasked heitor_deep 81 -
1
votes1
answer271
viewsQ: Redirect by href PHP
I have a DAO class that contains all the methods to execute. But when the user enters his access, he makes a select of the bank bringing his customers. Inside the while I put My question is: how…
phpasked heitor_deep 81