I have a table which contains a timestamp and a php function that is supposed to obtain all rows of a specific table from some start_date to some end_date specified by the user. The table's timestamp field is generated by the mysql UTC_TIMESTAMP() function every time I insert a new row - it takes this format: YYYY-MM-DD HH:MM:SS.
I need to be able to get all entries of the table from some start date to some end date and they must be sorted in order from earliest occurrence to latest one. The date entered by the user is obviously not going to take the UTC format but would rather be something like MM-DD-YYYY. Any suggestions how to perform such a query (if possible without some php pre-parsing) and how to do it efficiently? Thanks!