$LDATE = '#' . $_REQUEST['LDateDay'] . '/' . $_REQUEST['LDateMonth'] . '/' . $_REQUEST['LDateYear'] . '#';
$RDATE = '#' . $_REQUEST['RDateDay'] . '/' . $_REQUEST['RDateMonth'] . '/' . $_REQUEST['RDateYear'] . '#';
include("../../sql.php");
$myconn2 = mysql_connect(/*removed*/, $username, $password);
mysql_select_db(/*removed*/, $myconn2);
$LSQLRequest = "SELECT * FROM flight WHERE DepartureDate = ".$LDATE;
$LFlights = mysql_query($LSQLRequest, $myconn2);
$RSQLRequest = "SELECT * FROM flight WHERE DepartureDate = ".$RDATE;
$RFlights = mysql_query($RSQLRequest, $myconn2);
Tüm $ _REQUESTs gün / ay / yıl alanındaki uygun alanlar için geçerli sayısal değerler olduğunu varsayarsak, nasıl LFlights ve RFlights geçersiz olabilir? Ben sonuç yüzlerce var tüm veritabanını çağırma yapılırken yüzden veritabanı ve bağlantı verileri gayet iyi olduğunu biliyorum ve saha DepartureDate çok var.
Edit: When I pulled all the contents of the DB, the dates came back in the format "YYYY-MM-DD". So I converted D to a string if it was <10, then 0D. Then built a string YYYY-MM-DD. Still no results. No error now, but no results. I handpicked values that I knew had records in them.