Re: mysql_fetch_array()
| From: | Hannes Magnusson | Date: | Tue, 17 Aug 2004 22:21:13 +0000 |
| Subject: | Re: mysql_fetch_array() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194098@lists.php.net to get a copy of this message | ||
On Tue, 17 Aug 2004 18:18:24 -0400
tony@gonefishingguideservice.com (Anthony Ritter) wrote:
> When using mysql_fetch_array() is it necsessary to specify the second
> argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC?
php.net/mysql_fetch_array
array mysql_fetch_array ( resource result [, int result_type])
meaning; no. You don't need to specify the second argumen.
>
> I have seen many examples where it is left out and it is coded:
>
> $row = mysql_fetch_array($sql);
>
> as opposed to
>
> $row = mysql_fetch_array($sql, MYSQL_BOTH);
>
> Thank you.
> TR