<?php
include 'connection.php';
$data = mysql_query( "SELECT Date,color_code, COUNT(color_code) FROM paintshop WHERE Date BETWEEN '$startDate' AND '$endDate'") or die('error');
while($rw = mysql_fetch_array($data)){
?>
<td width="59" height="25" class="style5Copy"><?php echo $rw['Date']; }?></td>
i want display the dates between i post from the form..
eg: start date = 1-12-2011 until end date 7-12-2011
(meaning 1-12-2011,2-12-2011,3-12-2011,4-12-2011,5-12-2011,6-12-2011,7-12-2011):-/