From:             [EMAIL PROTECTED]
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:

PHP Development Mailing List <>
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