Good Day everyone(even if its already 10pm here) i know its seems very easy to some of you guys but seems i cant get an hold onto it.. so i have this query that search data between 2 date range(which is working fine) and another query that add all data from a specific field in my table(whic is also working). The thing is now what i needed to do is to combine the two queries in one
here's the first query
select * from advance WHERE SDate BETWEEN '" . $from . "' AND '" . $to . "' ORDER BY `Payment_type`
and the other
select SUM(Grand_total) AS
total_sales_todayfrom advance
thanks