note 20963 added to function.mysql-fetch-array

From: Date: Tue, 23 Apr 2002 19:47:56 +0000
Subject: note 20963 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-29728@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 -- http://www.php.net/manual/en/function.mysql-fetch-array.php http://master.php.net/manage/user-notes.php?action=edit+20963 http://master.php.net/manage/user-notes.php?action=delete+20963 http://master.php.net/manage/user-notes.php?action=reject+20963

« previous php.notes (#29728) next »