|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-27 05:35 UTC] hsutanto78 at hotmail dot com
[2003-10-27 06:35 UTC] georg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 22:00:01 2025 UTC |
Description: ------------ There was nothing wrong when I executed this script at first. But after I added the data more than 500 records, it only display nothing. I tried to retrieve the data through shell command, and no problem. is it PHP bug?? Thanks in advance. Reproduce code: --------------- $strQuery = "SELECT * FROM cust_data"; $result = mysql_query($strQuery) or Die("QUERY FAILED"); while($line=mysql_fetch_array($result,MYSQL_ASSOC)){ $array[]=$line; print_r($array); } Expected result: ---------------- Array([0]Array([id]=00001, [name]=John..... Array([1]Array([id]=00002, [name]=.... Actual result: -------------- 1 1 1