Re: Re: mysql_fetch_array()

From: Date: Tue, 17 Aug 2004 22:34:51 +0000
Subject: Re: Re: mysql_fetch_array()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-194100@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 As Tony shows, anything between the [] is optional. -- --Matthew Sims --<http://killermookie.org>

« previous php.general (#194100) next »