$sor= mysql_query("SELECT * FROM siparis WHERE tarih Between '$ilk1' and '$son1' ORDER BY id DESC ") or die(mysql_error());

yaparak hatayi görebilirsin