From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      4.1.1
PHP Bug Type:     MySQL related
Bug description:  mysql_fetch_array() returns bad array

I have a table with 10 columns. I queried the mysql database to return only
5. I used mysql_fetch_array($queryID) to get an array of data to work
with. When I did count(mysql_fetch_array($queryid)) it returned 8. When I
did mysql_num_fields($queryid) it returned 5. Also, when I try to access
the array returned from mysql_fetch_array as a numeric array, it doesn't
work. It doesn't give warnings, but it doesn't give any data. Here is some
sample code:

$qid = mysql_query("SELECT a,b,c,d,e FROM table1");
echo mysql_fetch_array($qid);
echo mysql_num_fields($qid);
echo count(mysql_fetch_array($qid));

Thankyou for your time! =)

-- 
Edit bug report at: http://bugs.php.net/?id=15111&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
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