Hello,
I am once again here to get help regarding php and mysql. Anyways here's my problem:
I have 2 dates in mysql db as date format (yyyy-mm-dd) and 1 user specified date in same format.
I want to check if the user specified date is equal or is in between the start date or end date in db. The date fields in db are called: sdate (startdate) and fdate (finishdate).
Please tell me how do i go about it ? I was trying the following query which does not seems to be working:
$q1 = "SELECT * FROM reservations WHERE
$startd >= sdate AND $startd =< fdate";
Please help me.
Thanks