Hi all,
I'm making an online booking system, where I create available booking slots, and people come along and select which bookings they would like to use.
I'm having problems trying to work out the best way to make my booking creation form - I'd like to create a dropdown list of dates, months, and times... but what format does the information have to be in to pass it accurately from php to mysql?
How do I convert the date and times based on what people select into data that is compatiable with date fields on the database?
K
What's the easiest way to set out the time?
Moderator: General Moderators
-
kral_majales
- Forum Commoner
- Posts: 36
- Joined: Wed Nov 24, 2004 2:47 pm
- Location: Dorset, UK
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
http://php.net/time
http://php.net/date
http://php.net/strtotime
those should give you an idea of what you need
http://php.net/date
http://php.net/strtotime
those should give you an idea of what you need
-
kral_majales
- Forum Commoner
- Posts: 36
- Joined: Wed Nov 24, 2004 2:47 pm
- Location: Dorset, UK