Sure. Here's the code from index.php under admin that is causing the error.
<?php
// RepeatSelectionCounter_2 Begin Loop
$RepeatSelectionCounter_2_IterationsRemaining = $RepeatSelectionCounter_2_Iterations;
while($RepeatSelectionCounter_2_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_2 || $row_contenthistory){
?>
<div id="leftPod<?php echo $RepeatSelectionCounter_2; ?>" class="leftPod">
Date: <?php echo date("m/d/Y", $row_contenthistory['HistoryDate']); ?><br />
Page: <?php echo $row_contenthistory['HistoryGroup']; ?><br />
Area: <?php echo $row_contenthistory['HistoryReference']; ?><br />
<?php
$content_id_Actions = "-1";
if (isset($content_id)) {
$content_id_Actions = (get_magic_quotes_gpc()) ? $content_id : addslashes($content_id);
}
mysql_select_db($database_TestingServer, $TestingServer);
$query_Actions = sprintf("SELECT * FROM contenthistory WHERE contenthistory.HistoryContentID = %s", GetSQLValueString($content_id_Actions, "int"));
$Actions = mysql_query($query_Actions, $TestingServer) or die(mysql_error());
$row_Actions = mysql_fetch_assoc($Actions);
$totalRows_Actions = mysql_num_rows($Actions);
mysql_select_db($database_localhost, $localhost);
$query_ContentActions = sprintf("SELECT * FROM contents WHERE contents.ContentID = %s", GetSQLValueString($row_contenthistory['HistoryContentID'], "int"));
$ContentActions = mysql_query($query_ContentActions, $localhost) or die(mysql_error());
$row_ContentActions = mysql_fetch_assoc($ContentActions);
$totalRows_ContentActions = mysql_num_rows($ContentActions);
?>
Action: <?php if($totalRows_Actions > 1 && $totalRows_ContentActions > 0 ) { ?>Updated
<?php } else if ($totalRows_ContentActions == 0) { ?>Deleted
<?php } else { ?>Inserted<?php } ?><br />
<?php if ($totalRows_ContentActions > 0) { ?>
<span style="margin-left:95px;">
<a href="contents_detail.php?ContentID=<?php echo $row_contenthistory['HistoryContentID']; ?>" style="color:#004899;" title="View">View Content</a>
</span>
<?php } else { ?><span style="display:block; height:15px;"></span><?php } ?>
</div>
<?php
} // RepeatSelectionCounter_2 Begin Alternate Content
else{
?>
<?php } // RepeatSelectionCounter_2 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_2 && $RepeatSelectionCounter_2_IterationsRemaining != 0){
if(!$row_contenthistory && $RepeatSelectionCounter_2_Iterations == -1){$RepeatSelectionCounter_2_IterationsRemaining = 0;}
$row_contenthistory = mysql_fetch_assoc($contenthistory);
}
$RepeatSelectionCounter_2++;
} // RepeatSelectionCounter_2 End Loop
?>