Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1003647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:00:42+00:00 2026-05-16T08:00:42+00:00

I an issue that has me completely stumped. I am simply running a simple

  • 0

I an issue that has me completely stumped.

I am simply running a simple query with one parameter, putting the results in an array, and then looping through the array to display the information in a table.

I will post the code at the end, though it is kind of dense, but mostly I’d liek to know what would cause a php script to die with no error?

I would like to note that after the mysql info is put into an array, I print it out right before the foreach loop, and all the info displays.

I have error reporting turned on.

The error only occurs on queries with certain parameters, but not others.

The error does not always occur in the same place, but it does always occur. As it goes through the records, it stops at a random point after a few records have been drawn into the table.

I don’t believe it could be an issue with my functions, as it would give an error.

Anyway, I hope I am making some stupid oversight. I’d appreciate any feedback.

<?php if(isset($_SESSION['submit']) && $_SESSION['search_param'] != ''){ ?>

<br />
<br />

<table id="results_box" cellpadding="0" cellspacing="0">

<?php $bg = 'alt2'; ?>

<?php //echo '<pre>',print_r($results['rows']),'</pre>'; ?>

<?php foreach( $results['rows'] as $row){ ?>

    <?php $podcasts = getRelatedPodcasts('item',$row['record_id']); ?>
    <?php $images = getRelatedImages('item',$row['record_id']); ?>
    <?php $main_image = getAndShowMainImage('item',$row['record_id'],'mini'); ?>
    <?php $color_class = str_replace(' ','-',$row['category']); ?>
    <?php $people = getRelatedPeople('item',$row['record_id']); ?>

    <?php $bg = ($bg == 'alt2' ? 'alt1' : 'alt2'); ?>

    <tr class="<?php echo $bg; ?>" onClick="Link('index.php?page=entry&permalink=<?=$row['record_id']; ?>')">
    <td class="leftrows <?=$color_class?>">
    <?=$main_image?>
    </td>
    <td class="next-to-leftrows " width="25%">
    <div class="text-headroom">
    <font class="title-medium">
    <?php echo highlight($row['name_title'],$_SESSION['search_param']); ?>
    </font>
    <br />
    <span class="small">
    <?=highlight($row['city'],$_SESSION['search_param'])?>, <?=$row['state']?> 
    &bull; <?=highlight($row['category'],$_SESSION['search_param'])?>
    </span>
    </div>
    </td>
    <td class="rows" width="25%">
    <div class="text-headroom">
    <ul class="small">
    <?php 
    foreach($people['record_ids'] as $key => $person){ ?>
        <li><?=highlight(getPersonName($person,'FL'),$_SESSION['search_param'])?></li>
    <?php } ?>
    </ul>
    </div>
    </td>
    <td class="rows small" width="45%"><?php echo constrainLongText($row['remarks'],150); ?></td>
    <td class="rightrows small" align="right" width="25">
    <?php if($podcasts['count'] > 0){ ?>
        <img src="ui/images/headphones.png" />
    <?php } ?>
    </td>
    </tr>

<?php }

} // end if submit for results ?>

</table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:00:43+00:00Added an answer on May 16, 2026 at 8:00 am

    I had an issue in one of the functions, but the errors weren’t appearing because of the fact that the functions were in another file. Unfortunately, my host sucks and I don’t have access to the php.ini, but by eliminating each function and starting basically from scratch it became apparent where the issue was. Thank you for the pointers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our issue is that our project has files being downloaded using wget to the
I'm having an issue with a standard ASP.NET page that has a TextBox and
I'm dealing with an issue with my current employer that has seriously made me
I've got an interface inheritance issue that has been vexing me for some time.
I'm dealing with a design problem that I'm sure has a simple answer and/or
The issue that prompted me to ask this is a web form that was
I have an issue that is driving me a bit nuts: Using a UserProfileManager
An odd issue that I have been trying to address in a project -
I have a database issue that i currently cannot wrap my head around with
I have a weird issue that only seems to be affecting IE 7. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.