From: mjs15451 at hotmail dot com
Operating system: Linux
PHP version: 5.0.0
PHP Bug Type: MySQL related
Bug description: mysqli_fetch_array resulttype
Description:
------------
If a resulttype is not specified when looping through a query, the
resulting array from mysqli_fetch_array does not return any data.
MYSQLI_BOTH should be the default value for mysqli_fetch_array.
I'm also using MySQL 4.1.3beta
Reproduce code:
---------------
while ($row = mysqli_fetch_array($result)){
echo $row[0];
}
Expected result:
----------------
$row[0] should return the first column of the query.
Actual result:
--------------
The while loop executes for the number of rows returned in the query but
$row[0] does not return any data.
--
Edit bug report at http://bugs.php.net/?id=29335&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29335&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29335&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29335&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29335&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29335&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29335&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29335&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29335&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29335&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29335&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29335&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29335&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29335&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29335&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29335&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29335&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29335&r=float