By the way, here is my sql for both record sets.
<?php $Paramid_rsTable1 = "-1";
if (isset($_GET['id'])) {
$Paramid_rsTable1 = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_dbCMS, $dbCMS);
$query_rsTable1 = sprintf("SELECT * FROM tblTable1 WHERE id = %s", GetSQLValueString($Paramid_rsTable1, "int"));
$rsTable1 = mysql_query($query_rsTable1, $dbCMS) or die(mysql_error());
$row_rsTable1 = mysql_fetch_assoc($rsTable1);
$totalRows_rsTable1 = mysql_num_rows($rsTable1);
$colname_rsTable2 = "-1";
if (isset($_GET['id'])) {
$colname_rsTable2 = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_dbCMS, $dbCMS);
$query_rsTable2 = sprintf("SELECT * FROM tblTable2 WHERE id = %s", GetSQLValueString($colname_rsTable2, "int"));
$rsTable2 = mysql_query($query_rsTable2, $dbCMS) or die(mysql_error());
$row_rsTable2 = mysql_fetch_assoc($rsTable2);
$totalRows_rsTable2 = mysql_num_rows($rsTable2);?>
TroyD