On Thu, 18 Jan 2001, Jimmy Bäckström wrote:

> Yo!
> I am wondering what the difference is between mysql_fetch_array and mysql_fetch_row. 
>I tried using this code:
> $result = query("SELECT * FROM index1");
>
> while ($row = mysql_fetch_row($result)) {...
> but $row[] does not contain any data, but when I changed it to:
> $row = mysql_fetch_array($result) ... it worked just fine.
>
> So what is the difference?
> /Jimmy
>

mysql_fetch_row() uses numeric indices, whereas mysql_fetch_array() can also
provide string indices.

-- 
Ignacio Vazquez-Abrams  <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to