note 20963 rejected from function.mysql-fetch-array by torben
| From: | torben@php.net | Date: | Tue, 23 Apr 2002 19:59:04 +0000 |
| Subject: | note 20963 rejected from function.mysql-fetch-array by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29730@lists.php.net to get a copy of this message | ||
Hi,
i tried to select a field with the date_format function like this
$query="select id,DATE_FORMAT(date_field,\"%d.%m.%Y %H:%i:%s\") from table";
$res=mysql_query($query);
$row=mysql_fetch_array($res);
now if i try to give the date_field out like this
echo"$row[date_field]";
it doesn´t work but if i write
echo"$row[1]";
it works ... is this a bug or do i do something wrong?
thx
Santos