PHP 4.0 Bug #9736 Updated: mssql_fetch_array not consistent
| From: | sniper@php.net | Date: | Tue, 13 Mar 2001 23:33:38 +0000 |
| Subject: | PHP 4.0 Bug #9736 Updated: mssql_fetch_array not consistent | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48858@lists.php.net to get a copy of this message | ||
ID: 9736
Updated by: sniper
Reported By: vhegde@myersinternet.com
Old-Status: Open
Status: Closed
Old-Bug Type: MSSQL related
Bug Type: MySQL related
Assigned To:
Comments:
So which one is this? MSsql OR MySQL ??
Anyways, you're using very old version of PHP.
Update first to PHP 4.0.4pl1 and reopen if this
problem still exists with it.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-03-14 00:25:38] vhegde@myersinternet.com
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.
>
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9736&edit=2