I think I know what you are asking, and I think I know the solution.
You want to specify which columns are included within your query. I'm just going to say the column with the number is called Number and the date column is called Date.
Your query would be
SELECT Number,Date FROM dates WHERE (whatever conditions you want).
Then you grab your result and put it into an array like this:
while ($query_data = mysql_fetch_array($result)) {
$number = $query_data["Number"];
$date = $query_data["Date"]
//Do whatever you want with the variables
}
The while loop's condition will automatically grab each row one at a time and assign the var $number & $date the values. You'll have to use them in the loop, since they will be overwritten next iteration. Or, if you wanted to keep them you could do something along these lines:
$FirstTime = TRUE;
while ($query_data = mysql_fetch_array($result)) {
if ($FirstTime) {
$number = array ($query_data["Number"];
$date = array ($query_data["Date"];
$FirstTime = FALSE;
}
else {
array_push ($number, $query_data["Number"]);
array_push ($date, $query_data["Date"]);
}
}
That is, if I understood your question right 🙂
--kinadian