Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-2006, 08:38 AM
Ralph
 
Posts: n/a
Default mysql is not returning everything


Hi

I wonder why my mySQL server 5.0.24a is not returning all of the rows i
was asking for. The code snippet is:

$db = new mysql_db($db_settings['root']);

$query = 'SELECT zip, latitude, longitude FROM zipcodes_tbl';

$result = $db->sql_query($query);

echo 'Fetching ...<br>';
while($row = $db->sql_fetchrow() ) {
$zipcodes[] = $row;
echo $row['zip'] . '<br>';
}
echo 'Done<br>';

It's always stopping at 79961. Is it mySQL or maybe PHP has some upper
limit for variable capacity?

Thank you
--

Ralph
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-25-2006, 08:53 AM
Ralph
 
Posts: n/a
Default Re: mysql is not returning everything

Ralph wrote:
>
> Hi
>
> I wonder why my mySQL server 5.0.24a is not returning all of the rows i
> was asking for. The code snippet is:
>
> $db = new mysql_db($db_settings['root']);
>
> $query = 'SELECT zip, latitude, longitude FROM zipcodes_tbl';
>
> $result = $db->sql_query($query);
>
> echo 'Fetching ...<br>';
> while($row = $db->sql_fetchrow() ) {
> $zipcodes[] = $row;
> echo $row['zip'] . '<br>';
> }
> echo 'Done<br>';
>
> It's always stopping at 79961. Is it mySQL or maybe PHP has some upper
> limit for variable capacity?
>
> Thank you

Let me answer my own question
The problem was with PHP configuration directive memory_limit being set
to low

Thank you all

--

Ralph
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:16 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.