mysql_fetch_row() and mysql_fetch_array()?
| From: | Jimmy Bäckström | Date: | Wed, 17 Jan 2001 23:12:56 +0000 |
| Subject: | mysql_fetch_row() and mysql_fetch_array()? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35201@lists.php.net to get a copy of this message | ||
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