Questions tagged as 'php'

1
answer

Form of symfony, field of type FileType

I run into a problem when trying to upload images to the server using a symfony form as follows: $form = $this->createFormBuilder($image) ->add('full', FileType::class, array('label' => 'Imagen', 'multiple' => true))...
asked by 17.12.2018 / 19:52
2
answers

Improve MySql query coding

I have the following a doubt regarding the code that I implemented. Although it is functional, I am not convinced by the way in which I managed to solve the problem. What it does is calculate the average of the recorded data at the exact time...
asked by 06.12.2018 / 15:26
1
answer

Error in mysqli_stmt :: fetch_assoc ()

I am trying to develop a function that will help me simplify my database queries. I am implementing it with prepared queries and a bit of dynamism at the moment of knowing that I am executing. Actually I have never used the prepared queries nor...
asked by 14.10.2018 / 07:14
2
answers

Problem when displaying modal data from BD in Laravel

I have a table that brings all the records of my complex table and a button that opens a modal, the problem is that when selecting a record of the table (In the view) it does not show me as it corresponds the information of the chosen registry...
asked by 14.12.2018 / 15:14
1
answer

Browse Array with Object inside, PHP

I have the following Array in PHP: array(4) { ["moduleName"]=> string(8) "Products" ["id"]=> string(6) "14x937" ["user"]=> object(Users)#523 (99) {} ["data"]=> array(40) {} } I try to go through it in all po...
asked by 15.10.2018 / 16:37
1
answer

Multiply 2 MySQL columns with decimals

I have a column named PRECIO and another CANTIDAD , column PRECIO is in text format and the decimal separator has a comma, (this is the result of an excel export to mysql). Achieve multiply PRECIO x CANTIDAD...
asked by 21.08.2017 / 15:36
1
answer

Save Javascript variable in PHP

I have a variable in JavaScript that I can send to value of a form in html. The input where the variable is loaded is like hidden because I do not want it to display the value on the screen. The form only has that input...
asked by 22.10.2018 / 20:20
1
answer

Wordpress shortcodes do not render

I am developing a theme and I am applying shortcodes , but in the pages and in the entries, it shows me the literal text instead of what the shortcode returns. I'm using the code that comes out in the API. //[foobar] function f...
asked by 13.10.2018 / 01:05
2
answers

Cousins and multiplication tables

I can not get this code going. It is about listing the prime and non-prime numbers defined in a range by showing the multiplication table of those that are prime. Let's see if someone clarifies how to define the code. <?php for($i=3;$i<...
asked by 07.10.2018 / 18:08
2
answers

arrays with if php

Well I am something new and I do not have much exp the following thing in an arrangement of 3 numbers to know which is the biggest, the smallest or if they are equal I have it this way I do not know if it will be correct or open a better clarifi...
asked by 06.10.2018 / 07:20