I am working on my first php website I thought it would be a simple one to do and I seem to be wrong hoping you can help me out with my 2 main problems with the site
question 1. Although I am using a html form I am not sure of the correct code to store the info into the database in the way I want info entered.
What I am trying to do here is add a date to mysql but I would like to use dropdown menu to do so I know how to make the dropdowns however I am not sure of the php code to combine the year, month and day so that it can be entered in one date field in Mysql database
Can someone help me and explain how this is done?
The second question also revolving around that I want to display info queried from database however users of my web site may put in a date that is between two dates. i.e. I have date field 1 and date field 2 the user looks for something on Aug 16, 2010 however in the database there is something that date field 1 has as aug 12, 2010 and date field 2 has as aug 21, 2010 ----this should show up in query results now if the user puts in aug 22, 2010 it returns empty because nothing is between the two dates.
How can i do this? I am assuming its the <= and the >= command but I want to make sure.