ID: 29335
Updated by: [EMAIL PROTECTED]
Reported By: mjs15451 at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: MySQL related
Operating System: Linux
PHP Version: 5.0.0
New Comment:
I can't reproduce it.
please provide a short reproducable sample script.
Previous Comments:
------------------------------------------------------------------------
[2004-07-22 18:25:46] mjs15451 at hotmail dot com
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 this bug report at http://bugs.php.net/?id=29335&edit=1