--- Anthony Ritter <[EMAIL PROTECTED]> wrote:
> My question was the call to
>
> mysql_fetch_array()
>
> will also return a result set without the additional argument
> constant as in:
>
> while ($row = mysql_fetch_array($sql))
> {...
> // no constant is being used
>
> There are many times that I see that used in textbooks - without
> the constant - just the variable from the sql query as the
> argument.
This is what I was talking about, too. That optional argument is described
on the man page in the part I quoted.
If you don't put it, you get both the associative and enumerated arrays.
If you only want one or the other, you can use that optional second
parameter or the separate functions.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php