PHP 4.0 Bug #9736: mssql_fetch_array not consistent
| From: | vhegde at myersinternet dot com | Date: | Tue, 13 Mar 2001 23:25:38 +0000 |
| Subject: | PHP 4.0 Bug #9736: mssql_fetch_array not consistent | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48857@lists.php.net to get a copy of this message | ||
From: vhegde@myersinternet.com
Operating system: NT 4.0
PHP version: 4.0.1pl2
PHP Bug Type: MSSQL related
Bug description: mssql_fetch_array not consistent
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.
>
--
Edit Bug report at: http://bugs.php.net/?id=9736&edit=1