Re: mysql_fetch_array
| From: | John W. Holmes | Date: | Fri, 26 Mar 2004 19:03:30 +0000 |
| Subject: | Re: mysql_fetch_array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181578@lists.php.net to get a copy of this message | ||
From: "Adam Voigt" <adam@kotisprop.com>
> On Fri, 2004-03-26 at 13:50, Chris Mach wrote:
> >
> > I have this query to select the date from my table...
> >
> > SELECT DATE_FORMAT(date1, '%W %M %Y') FROM table
> >
> > How do I know what name mysql_fetch_array assigned to the date_format ?
>
> It would be position 0 in the array, or in your query after the date
> format function you could put "AS blah" and then it would come out as
> blah.
Or you could use $row['DATE_FORMAT(date1, \'%W %M %Y\')'], but... umm..
yeah....
;)
---John Holmes...