<?php /* Here do any thing you want with the dates date1 and date2. For option 1 "yesterday or today" you will have date1=date. Say of you want to query the database write youe query here. e.g: qur = "select * from xxxx where datae between '$date2' and '$date1'"; This is under the assumption that you have the row datae with data type as "date". */ echo "<br><br>"; echo "Date Range - <font color=green><b>$date2 to $date1</b></font>"; ?>