Getting all the Fridays from a month
Posted: Mon Oct 27, 2003 9:57 am
Hi
I'm a bit of a newbie to PHP so you'll have to be very simple in your explanations .
I'm tryng to get a form to display all Fridays in a month in date format in a drop down list. I'm passing the month and the year as a variable from another form, the variables are $month and $year.
I've looked at the get date function but can't work out how to get it to produce a list of all fridays in a month.
Then i would like to add either 7 days, 14 days or 21 days to this date to get an end date (it's for hiring a vehicle) which I can then check against a DB to see if any of those dates are booked.
Thanks in advance for any help with this.
Cheers

I'm a bit of a newbie to PHP so you'll have to be very simple in your explanations .
I'm tryng to get a form to display all Fridays in a month in date format in a drop down list. I'm passing the month and the year as a variable from another form, the variables are $month and $year.
I've looked at the get date function but can't work out how to get it to produce a list of all fridays in a month.
Then i would like to add either 7 days, 14 days or 21 days to this date to get an end date (it's for hiring a vehicle) which I can then check against a DB to see if any of those dates are booked.
Thanks in advance for any help with this.
Cheers