Can someone help me with this please?
I am getting a date passed from another page, which I can echo to screen, so the correct variable is getting through. I then try to query the db using the variable, but I am not getting any output.
The code I am using is below. What am I missing?
$guestdatebooking = mysql_query("SELECT * FROM Bookings WHERE DATE_FROM = '$DATE_FROM'" );
while ($myrow = mysql_fetch_array($guestdatebooking)) ;
{
echo "<br>Name: ".$myrow["BOOKING_ID"]."<br>";
echo "<b>Initials: ".$myrow["Guests_Guest_ID"]."</b><br>";
echo "address1: ".$myrow["NO_OF_NIGHTS"]."<br>";
echo "address2: ".$myrow["DATE_FROM"]."<br>";
echo "Post code: ".$myrow["DATE_TO"]."<br>";
echo "tel_no: ".$myrow["NO_OF-PEOPLE"]."<br>";
echo ":::::::::::::::::::::::::::::::::::::::::::::::::";
}//end while.