thank you for the great help.
the date thing works niceley now I gonna do the loop.
gotta say I learned more in 3 days then I would learn in 2 weeks at university
UPDATE:
UPDATE! this is what I am struggeling on
I am supposed to put the results from a DB table in an HTML (PHP) table. the table should have culums from january to december.
There is a date field in my DB table and according to the date field e.g 12/06/03 the results from this row are supposed to be entered into the June table field.
so -- May -- June -- July----
-- -- data ---- ---
--- ---- data--- ------
I use this fetch array function
function odbc_fetch_array($result, $rownumber=-1) {
if (PHP_VERSION > "4.1") {
if ($rownumber < 0) {
odbc_fetch_into($result, $rs);
} else {
odbc_fetch_into($result, $rs, $rownumber);
}
} else {
odbc_fetch_into($result, $rownumber, $rs);
}
$rs_assoc = Array();
foreach ($rs as $key => $value) {
$rs_assoc[odbc_field_name($result, $key+1)] = $value;
}
return $rs_assoc;
}
and I use your code to format the date.