2
In my consultation I have two column where I do the sum of hours and the sum of the amount to be paid by the client in those hours:
Line summing the hours: CAST(SUM(SEC_TO_TIME(E.teste1))/100 AS DECIMAL (15,2)) AS QTD 1º e 2º Hora
Row summing the amount payable: SUM(CONCAT(E.Valor, '€')) AS Valor 1º e 2º Hora
In mysql you are showing the results in this way as shown in the image:
By showing the query data in php I want to show the hour column in time format and the column that adds the value to pay with the euro symbol
Does not give, returns the values in the column as data type
BLOB
– Bruno
It worked, in relation to the euro solved and in relation to the hour it can help?
– Bruno
I didn’t understand the time. For example:
2.00
would be what?– Sam
Instead of
2.00
should show up2:00
, because of the form it is, it gives to understand a decimal number. But that is only a detail, otherwise I keep– Bruno
It worked, so it gets a professional presentation. Thank you
– Bruno
Dispose friend!
– Sam