本文整理匯總了PHP中Home::categoryParentLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP Home::categoryParentLink方法的具體用法?PHP Home::categoryParentLink怎麽用?PHP Home::categoryParentLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Home
的用法示例。
在下文中一共展示了Home::categoryParentLink方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$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>
示例2: sprintf
$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" -->