Answer the question
In order to leave comments, you need to log in
How to display data from the access database by date filter (start date and end date)?
<?php
$conn = odbc_connect("sprut.mdb","","");
$ret = odbc_exec($conn, "SELECT History.DateTime, History.Sm_Key, History.ClientsId, OilTypes.OilName,
History.LiterDeliv, History.AmountDeliv
FROM (History INNER JOIN Fuel_Tank ON History.RezNumber = Fuel_Tank.RezNumber) INNER JOIN OilTypes ON
Fuel_Tank.OilKey = OilTypes.OilKey
WHERE (((History.LiterDeliv)>0))");
echo "Sales
the date | Product | Shift Number | Released, L. | Released, rub. |
".$row['DateTime']." | ".$row['OilName']." | ".$row['Sm_Key']." | ".$row['LiterDeliv']." | ".$row['AmountDeliv']." |
Answer the question
In order to leave comments, you need to log in
Format the date as you need, you can discard the tail with the time manual
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question