$sql="SELECT id from erp where year(FROM_UNIXTIME(start_date))=".$year." and month(FROM_UNIXTIME(start_date))=".$month." and day(FROM_UNIXTIME(start_date))=".$d." and siteid=".$siteid." and display_value=1 limit 1";
$sql="SELECT id from erp where year(FROM_UNIXTIME(start_date))=".$year." and month(FROM_UNIXTIME(start_date))=".$month." and day(FROM_UNIXTIME(start_date))=".$d." and siteid=".$siteid." and display_value=1 limit 1";