Re: mysql_fetch_assoc

From: Date: Fri, 05 Sep 2003 19:01:21 +0000
Subject: Re: mysql_fetch_assoc
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356209@lists.php.net to get a copy of this message
On Fri, 5 Sep 2003, LeftOver Production / Jouni Tuovinen wrote: > <?php > // Everything about MySQL connecting has been done > $result = mysql_query("SELECT DATE_FORMAT(datefield, '%d.%m.%Y') FROM > tbl"); > while ($row = mysql_fetch_assoc($result) { > echo "{$row['datefield']}\n"; > } > /* Output nothing */ Of course not, the name of the field is no longer named 'datetime' due to the function. Anyway, this is not a bug, and definitely the wrong forum to ask support questions. See http://php.net/support.php to find place how to get support. Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------

« previous php.doc (#969356209) next »