Jump to content

[SOLVED] bytes exhausted


jakebur01

Recommended Posts

i am getting this error:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40 bytes) in \db_fns.php on line 15

 

here is that section of the code:

function db_result_to_array($result)
{
   $res_array = array();

   for ($count=0; $row = $result->fetch_assoc(); $count++)
     $res_array[$count] = $row;

   return $res_array;
}

 

If it didn't count it would it fix my problem? How could I fix this?

Link to comment
https://forums.phpfreaks.com/topic/65372-solved-bytes-exhausted/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.