Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $query="select vehiculo,fecha_carga,rendimiento_kilometro,rendimiento_real,ticket,factura,costo_total,empresa
  2. from carga_combustible
  3. where factura ='$factura' and empresa='$empresa'
  4. order by fecha_carga desc
  5. union
  6. select sum(costo_total) as monto from carga_combustible where factura ='$factura'";
  7. $result=mysqli_query($con, $query) or die (mysqli_error());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement