I want to store the data from my sqltable after fetching them in an array so that whenever i want i can validate it. What is the way out.
I am using these codes but i can't work out.
I need all the rows for the field of a table to be stored..
$query = "SELECT booked_dates FROM booking_dates";
$result = mysql_query($query);
$booked_date = array();
while(list($bookeddates)=mysql_fetch_row($result))
{
$booked_date[].= $bookeddates;
}
$a=2010-11-01;
foreach($booked_date as $value == $a)
{
echo $value."Booked";
}
Please reply.