Thanx 🙂
you made me look at the same thing agan, and with a bit of jiggling i realised what was wrong
$query = "SELECT year(date), month(date), dayofmonth(date) from table";
$result = mysql_query($query) or die ("Error in query $query. " . mysql_error());
while($row = mysql_fetch_array($result)){
$year=$row["year(date)"];
$month=$row["month(date)"];
$day=$row["dayofmonth(date)"];
echo "<P>$year $month $day";
}
So now i managed to separate all three, which is what i wanted
cheers