Loading ...
Sorry, an error occurred while loading the content.

Array error

Expand Messages
  • Pritesh Loke
    Hello i get this error when i call simple function Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in
    Message 1 of 1 , Jun 7, 2007
    • 0 Attachment
      Hello

      i get this error when i call simple function

      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/pritesh/public_html/ponline/config/functions/banner_functions.php on line 100

      $sql = "select banners_id from banners where banners_id in (select bp_id from banners_pages where bp_page_id='$bp_page_id' and bp_type='$bp_type') and banners_position='$banners_position' ORDER BY RAND() limit 1";
      print $sql;
      $result = mysql_query($sql) or die(mysql_error());

      if(mysql_num_rows($result))
      {
      while($row=mysql_num_rows($result))
      {
      $return_array[] = $row[banners_id];
      }
      return $return_array;
      }

      pls tell me what is the problem

      Thank you


      PML

      ---------------------------------
      Building a website is a piece of cake.
      Yahoo! Small Business gives you all the tools to get online.

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.