0
Hello folks I’m crando a Dashboard and I came across a challenge and I don’t know what to do.
Table Order of Services
Nome_do_profissional = Susana
Serviço = MegaHair
Valor = 80
I need to create a query that counts how many times the name repeats in the column
Nome-do-profissional
, and multiply by the amount she would receive as payment, example:
$quatidade = 5;
$valorTipoDeServiço = 80;
$pagamento = 5 * 80;
detail, this value to be multiplied is not the same recorded in the table it will be in another table:
Table TYPE Services
Serviços = Mega Hair
Valor = 80
yes I used exactly this logic, I think my problem is in saving the query result in a string, and multiply it by the record value of a second table.
– Natan Martins Nouzanadam
as you are saving in variable the result today, edit your post and put this information so that it can help you!
– Lodi