there is one scenario. assume that:
financial year = 01/04/2017 to 31/03/2018
I have one
input fieldwithdatepickeranddatecolumn in database. If any user will selecttoday's date e.g 08/06/2017then there should display data for this
current year i.e from 01/04/2017 to 08/06/2017with the help of date table- and at the same it should display
previous year's data i.e from 01/04/2016 to 31/03/2017 - For the time I am using
$currentdate = date('d/m/Y')to display whole data from db till current date.
$A1 = mysqli_query($conn,'SELECT sum(netvalue) FROMfintranWHERE
groupNo = 21 AND docDate <= "'.$currentdate.'" ');
We can create some formula but i am so poor to build logic so please help me