Posts by Luciano de Paula • 1 point
2 posts
-
-6
votes3
answers1926
viewsA: How to put a php variable in a mysql query?
One way is to use it as follows: $query = "INSERT INTO tabela (data, assunto, destino, elaborado) VALUES({$data}, {$assunto}, {$destino}, {$elaborado})"; Without the simple quotes.…
-
-1
votes2
answers128
viewsQ: Date balance in mysql
I have a table requests and would like to return to the following situation. select all orders of a current month idClient by summing the values of the same. type select * from pedidos where…