$TFM_nest = $row_rsView['title']; if ($lastTFM_nest != $TFM_nest) { $lastTFM_nest = $TFM_nest; ?> <b><?php echo $row_rsView['title']; ?> </b><br /> <?php } //End of Basic-UltraDev Simulated Nested Repeat ?> <?php $Home->catLinkDisplay = ''; $Home->catLink = array(); $Home->categoryParentLink($row_rsView['detail_id'], $row_rsView['id']); echo $Home->catLinkDisplay; echo "<br />"; ?> <?php } while ($row_rsView = mysql_fetch_assoc($rsView)); ?> <?php } // Show if recordset not empty ?> <?php include 'menu.php'; ?> </div> </div>
$query_rsView = sprintf("SELECT * FROM home_product_management_details WHERE id = %s AND user_id = %s AND pid = %s ORDER BY name ASC", $colname_rsView, $colid_rsView, $colpid_rsView); $rsView = mysql_query($query_rsView, $connHm) or die(mysql_error()); $row_rsView = mysql_fetch_assoc($rsView); $totalRows_rsView = mysql_num_rows($rsView); $colname_rsPid = "-1"; if (isset($_GET['pid'])) { $colname_rsPid = get_magic_quotes_gpc() ? $_GET['pid'] : addslashes($_GET['pid']); } mysql_select_db($database_connHm, $connHm); $query_rsPid = sprintf("SELECT * FROM home_product_management_details WHERE detail_id = %s", $colname_rsPid); $rsPid = mysql_query($query_rsPid, $connHm) or die(mysql_error()); $row_rsPid = mysql_fetch_assoc($rsPid); $totalRows_rsPid = mysql_num_rows($rsPid); include '../Classes/Home.php'; $Home = new Home(); $Home->categoryParentLink($_GET['pid'], $_GET['id']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/mumbaionline.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- InstanceBeginEditable name="doctitle" --> <title><?php echo $row_rsPlace['title']; ?> :: Add Items</title> <!-- InstanceEndEditable --> <link href="../default.css" rel="stylesheet" type="text/css" media="screen" /> <script type="text/javascript" src="../js/script.js"></script> <script src="../js/jquery-1.2.6.js" type="text/javascript"></script> <!-- InstanceBeginEditable name="head" -->