note 11932 added to function.mssql-fetch-array.php
| From: | vhegde at myersinternet dot com | Date: | Tue, 13 Mar 2001 22:50:01 +0000 |
| Subject: | note 11932 added to function.mssql-fetch-array.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12356@lists.php.net to get a copy of this message | ||
mssql_fetch_array is not consistent in the results it fetches when referred to using the numeric
indices of the returned array, as compared to the results obtained by referring to the array as an
associative one.
For example ,i've had erratic results when doing the following ...
$sql = "select * from table"
$client_results = mysql_query($sql,$conn);
$client_row = mysql_fetch_array($client_results);
mysql_free_result($client_results);
echo $client_row[0];
echo $client_row[1];
echo $client_row[2];
...
array[0] sometimes shows the data in the first element correctly and sometimes it displays the
column name of the returned data...quite erratic.
http://www.php.net/manual/en/function.mssql-fetch-array.php