rishi,
I dont think that will be a difficult problem, but i need the table structures. One easy way might be to get the current month (range: between date() and date("d" -30)) and the previous month by (range: between date("d" -30)and date("d" -60)). But to provide workable soln, i really need...