I have a stored procedure with two parameters @startdate and @enddate
And I have a URL as below
'http://localhost/filename.php?startdate='01-08-2012'&enddate='31-08-2012'
As it stands, every month I have to change this manually to get startdate and enddate of the present month. For e.g. for September, i will have to change '01-09-2012' '31-09-2012'
I'm looking for php code or function which will take automatically first day of every month as startdate and last day of the the month as enddate in the url?