View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Invalid variables in recordset

Thread began 7/08/2009 12:41 am by johnlanglois | Last modified 7/09/2009 12:22 pm by johnlanglois | 1709 views | 6 replies


Originally Said By: Ray Borduin
  When and where do you get those warnings? I don't think they should be ignored. Please explain more fully so I can understand what you are talking about.  

Sure. Here's the code from index.php under admin that is causing the error.

// RepeatSelectionCounter_2 Begin Loop
$RepeatSelectionCounter_2_IterationsRemaining = $RepeatSelectionCounter_2_Iterations;
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 />
$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>
<?php } else { ?><span style="display:block; height:15px;"></span><?php } ?>
} // RepeatSelectionCounter_2 Begin Alternate Content
<?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 End Loop

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...