I need a help. This code help us when we put specific dates in box.
But if we want records of last 10days then what should we need to do. Automatic records of last 10 days
$sql = "select * from pub_website where user='$user' && STR_TO_DATE(pdate,'%Y-%m-%d') = '$fromdate' && website='$site'";